# Step 5 of 6: Show topics programmatically

## Content



You can show a specific topic programmatically by using the ShowTopic method.

Create a **CheckedChanged** event handler for **CheckBox1** and add code so it looks like the following:

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in Visual Basic

DOC-SUMMARY-TAG-CLOSE

```vbnet
Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged
      C1DynamicHelp1.ShowTopic("WordDocuments/glossaryofterms.htm")
End Sub
```

DOC-DETAILS-TAG-CLOSE

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in C#

DOC-SUMMARY-TAG-CLOSE

```csharp
private void checkBox1_CheckedChanged(object sender, System.EventArgs e) 
{ 
    c1DynamicHelp1.ShowTopic("WordDocuments/glossaryofterms.htm"); 
}
```

DOC-DETAILS-TAG-CLOSE