|
-
Feb 18th, 2003, 06:09 PM
#1
Thread Starter
Hyperactive Member
pop-up menu *[RESOLVED]*
How do I have a pop-up menu after i've clicked a button with the left mousebutton?
I imagine its a ContextMenu, but how do I show it?
Last edited by RealNickyDude; Feb 19th, 2003 at 07:54 AM.
-
Feb 18th, 2003, 06:36 PM
#2
Thread Starter
Hyperactive Member
Ok, i've managed to figure out this:
VB Code:
SearchContextMenu.Show(Me, btnSearchMenu.MousePosition)
but the menu is showing about 2 inches below where i've clicked the mouse on the button.
How do I get it so its just below and to the right, like a normal context menu?
-
Feb 18th, 2003, 07:10 PM
#3
Frenzied Member
VB Code:
Private Sub Button1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Button1.MouseDown
If e.Button = MouseButtons.Left Then
Dim pp As Point = New Point(e.X, e.Y)
ContextMenu1.Show(Button1, pp)
End If
End Sub
-
Feb 19th, 2003, 07:54 AM
#4
Thread Starter
Hyperactive Member
Thanks
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
|