|
-
Nov 12th, 2003, 06:29 AM
#1
Thread Starter
Hyperactive Member
ToolTipText in Usercontrol
Hello everybody,
I've found an interesting piece of code for creating a button. It's an ActiveX project. The button is created from scratch. That means that no other controls are used on the UserControl. Now I would like to have a tooltiptext. When I move over the control at runtime, I want a tooltiptext to be displayed. Can anybody tell me how to do that when creating a control from scratch?
Thnx a lot
-
Nov 12th, 2003, 07:13 AM
#2
The usercontrol should already have a ToolTipText property when you put it on the form.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Nov 12th, 2003, 07:17 AM
#3
Thread Starter
Hyperactive Member
That's correct, but when I move the mouse over the control, it won't display the Tooltiptext.
-
Nov 12th, 2003, 07:18 AM
#4
Are you using any kind of MouseLeave simulation that uses the SetCapture/GetCapture/RealeaseCapture API's? Because its a known issue that tooltips stop working when you use them.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Nov 12th, 2003, 07:23 AM
#5
Thread Starter
Hyperactive Member
Yes, I use them, I didn't know. Thnx for helping...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|