Link to home
Start Free TrialLog in
Avatar of EugeneSLO
EugeneSLO

asked on

How to change Tooltip shape

I have such a code which works fine
        ToolTip t = new ToolTip();
        t.ToolTipIcon = ToolTipIcon.Info;
        t.ToolTipTitle = "eVerifySMS";
        t.Show("Data Saved", pnlChangeProfile, new Point(50, 50), 1000);
it shows a tooltip at a specified position with needed text, however I don't like the Rectangle shape. I'd like to have it an Ellipse. How do I do this? Also would like to change the background color. Is it possible?
Thx
Avatar of surajguptha
surajguptha
Flag of United States of America image

From what i know, the rectangular tooltop is what is provided by default. You will have to either code a custom tooltip class or buy a third party tool tip library.
Avatar of Dmitry G
This is very simple solution for "balloon" shape.
http://www.codeproject.com/cs/miscctrl/Balloon_ToolTip.asp?df=100&forumid=176729&exp=0&select=1154254

There are some components you can buy:
http://www.componentsource.com/features/tooltips/visual-csharp-net/index.html

There are some examples how to create custome tooltips with extended functionality:
http://www.vbforums.com/showthread.php?s=&threadid=297009 (Visual Basic)

Use ready dll:
http://www.freevbcode.com/ShowCode.asp?ID=1232
Avatar of EugeneSLO
EugeneSLO

ASKER

isn't there a way to derive from original Tooltip and override OnPaint or something like this?
Yes that would be as good as developping a custom tooltip. Yes it can be done.
any snipets of code for overriding original tooltip?
ASKER CERTIFIED SOLUTION
Avatar of surajguptha
surajguptha
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Also there is no class like Rectangle for an ellipse so you might want to draw it using a Graphics.DrawEllipse(overloads) and see if u can fit that in to the above code.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Forced accept.

Computer101
EE Admin