Introduction by Rob Chandler
MS Help 2.x help was designed for the VS .NET environment only (and now also used by Borland .NET online help). Applications you create with your .NET compiler (VB .NET and C#) ordinarily use HTML Help 1.x (chm files).
The first thing you may notice about .NET applications is they no longer support calling help using numeric Context IDs. Instead they typically uses a Context Keyword string, the Keyword/URL mapping information being stored in the "A" or "K" index of the CHM. There is nothing to stop you from still using numeric context IDs but they will need to be converted and stored as a keyword string. Alternatively keep "Context ID to URL" mapping information on the application side, in an INI file or hard coded in switch statement. I prefer an INI file as you can correct help mapping problems without recompiling the application or help (less evaluation required). Having said all that I'll pass you over to Michael Waltuch.
ALink support broken
C# and VB .NET documentation seems to suggest that accessing help via Associated Keywords is support, however we recently found this feature to be broken in VS 2003.
By Michael Waltuch from ESRI
This brief tutorial will show you some of the new user assistance features available in VB.NET and C#.
This tutorial will show you how to:
To follow the steps of the tutorial, you'll need Visual Studio .NET.
The tutorial will demonstrate how to accomplish these tasks using the Visual Studio .NET IDE user interface and will supplement this with brief code excerpts that show you how to accomplish these tasks using either Visual Basic .NET or C#.
The Windows Forms ToolTip component displays text when the user points at controls. A ToolTip can be associated with any control.
To create What's This Help, take the following steps.
The Windows Forms HelpProvider component is used to associate an HTML Help 1.x Help file, an HTMLHelp 2.0 help file, or a standalone .htm file with your Windows application. You can even specify an http:// address. Adding a HelpProvider component to your Windows Form allows the other controls on the form to expose the Help properties of the HelpProvider component. This enables you to provide help for the controls on your Windows Form. In addition to displaying topics in .chm files or .htm files, you can use the HelpProvider to display popup text.
While not strictly in the realm of Help, ErrorProvider components are related to Help in that they afford the opportunity to give user assistance and control flow-of-control when the application detects an error or an inappropriate action.
This has been a quick tour of using HH 1.x help files with the .NET help-related components. The Visual Studio Help Collection goes into greater detail about the classes, controls, and components referred to here. You may want to refer to the following topics:
Rob Chandler adds:
You can also display help (via the .NET Framework Class library) by invoking the Help.ShowHelp Method (System.Windows.Forms.Help object, a static class that encapsulates the HTML Help 1.x engine.). This is a higher level method for opening a CHM.
MS Web links