-
am a major newbie, and I don't know how to make actions for the menu bar. For instance, I can make it do this...
File Edit About
Close Internet Me
But how do I get the code to perform an action like "close"
the program, or to go to the internet site, or to display a dialog box. I am in need of help. Thanks.
-
do you know how to use the menu editor?
-
yeh i can make them, i just need to know the coding.
-
ok, in deisgn mode, click on FILE (or what ever) and click on what you want to put in code for, lets click on "ME"
then when the code window comes up type this in:
MsgBox "I Made this Program", 0, Hi
-
here ya go
when you design the menu's
on DESIGN form
click on the menu item, sub menu appear
so if you click FILE, edit, new ect should pop up
and you go to EDIT
when you click edit takes you to code window
under edit type msgbox "You have clicked edit"
-
-
beat me to it
-
hey, its not a race or compitition or anything, take it easy
-
The event for the menu item will be a "click" event. So, you can code for them just like you would code for the click event of a button.
Private Sub mnuFileExit_Click()
Unload Me
End Sub
After you have created your menu, from your form just click on the item you need to write code for and the structure of the Sub will be set up for you. Just put your code into the Subroutine.
-
hmmm
was just making a statment..
sound like your in a bad mood
your dog died? :)
-
Yep.
That's twice in a week, now.