Results 1 to 3 of 3

Thread: Trigger Dropdown on Button

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2002
    Posts
    48

    Question 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

  2. #2
    Hyperactive Member CyberHawke's Avatar
    Join Date
    May 2004
    Location
    Washington DC
    Posts
    477
    try this and please let me know if it works for you:

    VB Code:
    1. 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!

  3. #3

    Thread Starter
    Member
    Join Date
    Mar 2002
    Posts
    48
    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
  •  



Click Here to Expand Forum to Full Width