If you have a disabled button on a winform how can you show a tool-tip on mouse-over to inform the user why the button is disabled?
Single element To make an element display its tooltip permanently, we use its showTooltipOn property. To make tooltip always be shown, set it to "always" .
How To Create a Tooltip. To create a tooltip, add the data-toggle="tooltip" attribute to an element. Note: Tooltips must be initialized with jQuery: select the specified element and call the tooltip() method.
Simply add a title to your button . @EduardLuca, In my case tooltip really does no work on disabled buttons because Bootstrap sets pointer-events: none for disabled state. It should work if set pointer-events: auto directly to the element. it's also that, the tooltip will aim to show bottom from where the mouse is.
Place the button (or any control that fits this scenario) in a container (panel, tableLayoutPanel), and associate the tooltip to the appropriate underlying panel cell. Works great in a number of scenarios, flexible. Tip: make the cell just large enough to hold the bttn, so mouseover response (tooltip display) doesn't appear to "bleed" outside the bttn borders.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With