How To Create a Custom HTML Help Viewer in Visual FoxPro This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
This article was previously published under Q191174 SUMMARY
This article describes how you can create a custom HTML help viewer with
Visual FoxPro.
With an understanding of how HTML help URL syntax works combined with the Microsoft WebBrowser control, it is possible to create a relatively simple form in Visual FoxPro that functions as an HTML help viewer. MORE INFORMATION
HTML help files are stored as compressed HTML source in .chm files.
Specifically for Visual FoxPro, this file is called FoxHelp.chm, and it
contains all of the HTML source and images for the Visual FoxPro help
topics. Since the Visual FoxPro help is based on HTML, it can be viewed in
Internet Explorer much like any other HTML document. The following code
uses the Visual FoxPro HyperLink baseclass to launch Internet Explorer and
display the main Visual FoxPro help topic:
The following sample code creates a form that contains the Microsoft
WebBrowser control, and it automatically navigates to the Visual FoxPro
help topic when it is launched. This form does not provide any navigation
capabilities outside of those offered within the help topic. However, using
the WebBrowser control's extensive object model, it is possible to provide
this functionality.Sample Code
It is important to recognize that although this HTML help viewer allows you
to view HTML help topics, it will not provide all of the features and
functionality that the Microsoft HTML Help Viewer provides, and there are
certain HTML help features that will not work at all when viewing help
topics using the WebBrowser control.
| Article Translations
|


Back to the top
