O'Reilly logo

Visual Basic® .NET by Example by Bob Donald, Gabriel Oancea

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required