Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"About" form in VB6

Status
Not open for further replies.

ignacious

Technical User
Feb 11, 2004
11
US
I have been using VBA and recently started programming in VB6. I have created the menu bar with file and help as top level menus. I have created an about form to open under the help menu but am having trouble getting the coding correct to make the about form "popup" when the about menu item is clicked. Can someone help?

Thank you
Ignacious
 
in the click event of the menu item try:
Code:
Load <youraboutsform'sname>
Hope this helps

HarleyQuinn
---------------------------------
Get the most out of Tek-Tips, read FAQ222-2244 before posting.
 
After creating the menu, show the form in the VB Development environment. Click the about menu item.

You should be thrown in to the code behind the form. In the click event, open the about form. It should be something like...

Code:
Private Sub mnuHelpAbout_Click()
    
    Call frmAbout.Show(vbModal)
    
End Sub

This assumes that your menu item was named mnuHelpAbout and that the about form is names frmAbout

vbModal will cause the about form to be opened modally (meaning that you won't be able to to anything else in the application until you close the about form).

Hope this helps.

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top