Results 1 to 3 of 3

Thread: Pop-Up Menu RESOLVED

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2005
    Posts
    300

    Resolved Pop-Up Menu RESOLVED

    Hi All, im trying to do something like this. Appears when Menu is clicked.




    I only want to have two options on it.

    Close Program and Go Back To Form1.

    Im a newbie with API's so please explain clearly.

    Thanks in advance.
    Last edited by Ricky1; Oct 29th, 2005 at 05:49 PM.
    Im Learning !!!!

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2005
    Posts
    300

    Re: Pop-Up Menu

    ok i found an example but and have the menu working but is there a way i can keep the Boarder style as 0 ?
    its still 0 on the forms properties but when i added the Menu that appeared.

    Im Learning !!!!

  3. #3
    Old Member moeur's Avatar
    Join Date
    Nov 2004
    Location
    Wait'n for Free Stuff
    Posts
    2,712

    Re: Pop-Up Menu

    I don't think this is an API question.
    What I do in this situation is create a top-level menu called mnuPopup in the menu editor. Uncheck the Visible box for this menu.
    Then create your submenus under that
    Now your form will not have a tiltlebar if you remove the caption and set the form's ControlBox false.
    To call the menu you would just use something like this
    VB Code:
    1. Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
    2.     If Button = vbRightButton Then PopupMenu mnuPopup
    3. End Sub

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