|
-
Aug 24th, 2000, 11:45 AM
#1
Thread Starter
Lively Member
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.
-
Aug 24th, 2000, 11:46 AM
#2
Frenzied Member
do you know how to use the menu editor?
NXSupport - Your one-stop source for computer help
-
Aug 24th, 2000, 11:49 AM
#3
Thread Starter
Lively Member
yeh i can make them, i just need to know the coding.
-
Aug 24th, 2000, 11:52 AM
#4
Frenzied Member
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
NXSupport - Your one-stop source for computer help
-
Aug 24th, 2000, 11:53 AM
#5
Frenzied Member
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"
-
Aug 24th, 2000, 11:54 AM
#6
Thread Starter
Lively Member
-
Aug 24th, 2000, 11:55 AM
#7
Frenzied Member
beat me to it
dimava beat me to it
-
Aug 24th, 2000, 11:56 AM
#8
Frenzied Member
hey, its not a race or compitition or anything, take it easy
NXSupport - Your one-stop source for computer help
-
Aug 24th, 2000, 11:57 AM
#9
Fanatic Member
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.
-
Aug 24th, 2000, 11:58 AM
#10
Frenzied Member
hmmm
was just making a statment..
sound like your in a bad mood
your dog died?
-
Aug 24th, 2000, 12:28 PM
#11
Fanatic Member
Yep.
That's twice in a week, now.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|