Click here to Skip to main content
13,831,956 members
Rate this:
Please Sign up or sign in to vote.
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!

What I have tried:

I have initially enabled the Tooltip
Updated 14-Jun-18 9:22am
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

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web01 | 2.8.190114.1 | Last Updated 14 Jun 2018
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100