ComponentOne DynamicHelp for WinForms
DynamicHelp for WinForms Tutorials / Tutorial 1: Mapping Help Topics at Design Time / Step 5 of 6: Show topics programmatically
In This Topic
    Step 5 of 6: Show topics programmatically
    In This Topic

    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:

    To write code in Visual Basic

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

    To write code in C#

    C#
    Copy Code
    private void checkBox1_CheckedChanged(object sender, System.EventArgs e) 
    { 
        c1DynamicHelp1.ShowTopic("WordDocuments/glossaryofterms.htm"); 
    }