Results 1 to 11 of 11

Thread: I need Menu Bar help

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    Dullawhere
    Posts
    100

    Question

    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.

  2. #2
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    do you know how to use the menu editor?
    NXSupport - Your one-stop source for computer help

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    Dullawhere
    Posts
    100
    yeh i can make them, i just need to know the coding.

  4. #4
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    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

  5. #5
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,539

    Talking 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"

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    Dullawhere
    Posts
    100
    Ok thanyou

  7. #7

  8. #8
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    hey, its not a race or compitition or anything, take it easy
    NXSupport - Your one-stop source for computer help

  9. #9
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    736
    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.

  10. #10

  11. #11
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516

    Unhappy

    Yep.


    That's twice in a week, now.
    Courgettes.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width