Help Class

Our first example of providing application help in this chapter is to display the contents of a help file as a result of selecting a menu item. The goal is to mimic most applications that have a Help menu where the user can display the help contents, help index, or help search for a particular keyword or keywords.

To accomplish this, you are going to use the System.Windows.Forms.Help class. This class contains shared methods that display help in different ways depending on the particular method that is called. You do not need to create an instance of the Help class to use it. In fact, you cannot create a new instance of the Help class. Because the methods are shared methods, you can just call the methods directly as you'll see in just ...

Get Visual Basic® .NET by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.