Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


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

Opening a Topic Through Code

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

Answer:
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
CommonDialog.ShowHelp
That's all there is to it using VB 4.0.
DevX Pro
 
Comment and Contribute

 

 

 

 

 


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

 

 

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