dcsimg
June 23, 2018
Hot Topics:

VB Coding TIP: Using 'What's This?' Help

  • November 18, 2002
  • By Sam Huggill
  • Send Email »
  • More Articles »

Make a new project. To the form set the WhatsThisHelp and WhatsThisButton to True and add a command button with the WhatsThisHelpID=1 and HelpContextID=5

Use the following information to make the menus:

Menu Property Value
WhatsThis Caption WhatsThis
WhatsThis Name mnuWhatsThis
WhatsThis Visible False
What's This? Caption What's This?
What's This Name mnuWhatsThisHelp

Make the What's This? menu a submenu of WhatsThis

Public ThisControl as control

Private Sub mnuWhatsThisHelp_Click()
ThisControl.ShowWhatsThis 
End Sub

Private Sub Command1_MouseUp(Button As Integer,_ 
Shift As Integer, _X As Single, Y As Single)
If Button = vbRightButton Then 
Set ThisControl = Command1 
PopupMenu mnuWhatsThis 
End If 
Set ThisControl = Nothing 
End Sub





Comment and Contribute

 


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

 

 


Enterprise Development Update

Don't miss an article. Subscribe to our newsletter below.

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

Sitemap

×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date