|
-
Oct 29th, 2005, 01:11 PM
#1
Thread Starter
Hyperactive Member
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.
-
Oct 29th, 2005, 01:32 PM
#2
Thread Starter
Hyperactive Member
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.
-
Oct 29th, 2005, 05:27 PM
#3
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:
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = vbRightButton Then PopupMenu mnuPopup
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|