Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Tip of the Day
Language: Web Development
Expertise: Beginner
Oct 1, 1996



Application Security Testing: An Integral Part of DevOps

Opening a Topic Through Code

What steps do I take to open/ retrieve a particular help topic (using Context string/ID) of a Help File?

This code, using the CommonDialog control, could be put behind a help button or other control that triggers help to be displayed. It is probably the easiest way to access WinHelp. Using it lets you avoid using API calls to do the same thing. Also, since most people already have a Common Dialog control in their applications, you can reuse it for this purpose.

CommonDialog.HelpContext = 120  ' whatever context number you want
CommonDialog.HelpCommand = cdlHelpContext ' This constant is defined under VB 4.0
That's all there is to it using VB 4.0.
DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date