![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
![]() ![]() |
To add System.Help.Pane to a Visual Basic .NET project
Add an Imports statement for System.Help as shown in the following example. Imports statements must always be the first lines immediately following any Option statements in a module.
Imports System.Help
Use the Help pane proxy object to control the Help pane from within an application. This example demonstrates creating a Help pane proxy object, and initializing a Help session using Visual Basic .NET.
'Create a Help pane proxy object Dim pane As System.Help.Pane = New System.Help.Pane _ ("help://microsoft.windows/?version=6.0&bundle=notepad&topic=/session.xml")
Use the DisplayContents method to display the table of contents (TOC) in the Help pane. The following example demonstrates calling DisplayContents using Visual Basic .NET.
'Display the table of contents for this collection
pane.DisplayContents()
'Display the table of contents and navigate to the node for the specified URI
pane.DisplayContents("help://microsoft.windows/?language=en-us&version=1.0&bundle=content _ &topic= /To_change_the_way_your_name_appears_to_other_people.xml")
see: Longhorn Help - Programming
![]() |