|
-
Jul 7th, 2004, 07:56 AM
#1
Thread Starter
Member
Trigger Dropdown on Button
I have a button on my toolbar which allows a drop down context menu and works fine. The only problem I have is that the button and the drop down portion of the button work independantly from each other. Is there something I can do when the button portion is pressed to activate the dropdown portion?
I could just force the menu open, which I have, but I thought if I could just activate the dropdown portion as if someone had clicked it, that would be cool.
Thank you
Carl
-
Jul 7th, 2004, 10:39 AM
#2
Hyperactive Member
try this and please let me know if it works for you:
VB Code:
Me.ContextMenu1.Show(Me.ToolBar1, New System.Drawing.Point(e.Button.Rectangle.Left, e.Button.Rectangle.Height))
Whadayamean it doesn't work....
It works fine on my machine!

-
Jul 7th, 2004, 11:15 AM
#3
Thread Starter
Member
Well, That does work, But that is what I already had in there as a workaround. I was hoping to make it actually activate the dropdown portion of the button because it turns a darker color and would look better. I had hoped there were a way to tell the dropdown portion of the button to activate.
Does anyone else have any suggestions?
Thanks
Carl
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
|