| Managing Windows Forms | ||
| The ShowHelp Method of the Help Object | ||
|
Although the HelpButton will work for a lot of things, there are several other techniques to choose from. One is the ShowHelp method of System.Windows.Forms.Help. This technique will call a URL (a web page that can either be local or on a network). Although this is a method that can be used in a lot of different ways, to get the idea across, here's a code example where the text display for the Lucky Seven program is just replaced by the ShowHelp method and the web page that is displayed is the main page at the About Visual Basic web site as an example. The last statement could also reference a local URL like this: In this case, the readme.txt file will be displayed by whatever program is registered to process txt files on the local computer - probably NotePad. The readme.txt file could also be converted to a web page and displayed in a web browser. And don't forget that VB.NET structured error handling also has the ability to display Help. Here's a code snippet showing how to use that for an Overflow error. |
||

