Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi folks,

I have a toolbar in my application that contains a dropdown button with an attached menu. The dropdown menu part works fine, but the button still acts as a button as when the main part of the button is clicked it generates a button clicked event like all the other buttons.

 

Does anybody know how to stop this or how to get the button click to display the drop down menu in the same way as clicking the dropdown part of the button.

 

Thanks :rolleyes:

Hamlet
  • *Experts*
Posted

I usually make it only one button with the down arrow drawn on the toolbar button's icon image. Otherwise it'll be two separate buttons, one with a click event and one with a menu.

 

Hope that helps

Member, in good standing, of the elite fraternity of mentally challenged programmers.

 

Dolphins Software

  • 3 weeks later...
Posted

Problem solved at last.

 

It was based on the DropDownArrows parameter of the ToolBar instead of the type of individual button on the toolbar. When I set this parameter to false, I no longer get the dropdown arrow at the right of the button and clicking on the button shows the menu.

Hamlet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...