lundi 20 avril 2015

ToolTip does not show in Status bar addin

I am developing a status bar Add-in for a business program. The add-in returns a usercontrol that is placed on the statusbar by the program. In that User Control I have a small icon in a picturebox. I want to show a tooltip when the user hovers over the icon. I have the following code:

ToolTip Message = new ToolTip();
toolTip1.ShowAlways = true;
Message.SetToolTip(MyIcon);

The Tooltip does not show up however. This is probably due to the StatusStrip.ShowItemToolTips set to false. I cannot control this however since that is part of the program.

Is there any way to force the tooltips to show, or can I inherit a custom class from the ToolTip class and have it show up? I do not want to create a complete new class for something that is already there.

Aucun commentaire:

Enregistrer un commentaire