I noticed a very strange behaviour with tooltips in Windowsforms and I am not sure if this is a (known) bug of the framework (.NET 4): I have two buttons sitting right next to each other. Both have a tooltip assigned. Now I disable one of the controls. Naturally the tooltip will not show for disabled controls. Here's when it gets strange: When I move the cursor over the enabled button to the inactive without waiting for the tooltip to appear on the enabled control, it opens up on the disabled control - and disappears again instantly.
The only way to prevent this is a rather nasty workaround in the popup event handler of the tooltip. I check if the associated control is disabled and if so, cancel the action. Is there any other way to prevent this in the first place?
Yeah it seems to be a bug in the framework.
How can I use a carriage return in a HTML tooltip?