Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I have several buttons on my WPF application, where I wish for a ComboBox to be displayed when the Mouse is hovered over the button, and you can then make a selection from the ComboBox. I wish it to be appear in a similar way to a ToolTip, except be a ComboBox, rather than the textbox that a Tooltip is.
I hope this makes sense. I am re-visiting a program that I wrote a while ago, so my C# is very rusty!
Mike

What I have tried:

I have initially enabled the Tooltip
Posted
Updated 14-Jun-18 8:22am
Comments
BillWoodruff 14-Jun-18 12:03pm    
"I have initially enabled the Tooltip"

what's that got to do with showing a ComboBox ?

what happens when the user clicks the button ? if what happens depends on what the user did in the ComboBox, then it seems to me you are creating a menu.

1 solution

Your "UI model" makes no sense.

The only thing that comes close to your "requirement" is a "context menu"; and even then, it makes no sense.

If you need the button to do "different things", use radio buttons (or something) on the "parent (form)" that "contains" the button to identify what "option" it is to perform when clicked.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900