Results 1 to 5 of 5

Thread: ToolTipText in Usercontrol

  1. #1

    Thread Starter
    Hyperactive Member JMvVliet's Avatar
    Join Date
    May 2001
    Location
    Papendrecht, Netherlands
    Posts
    310

    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

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    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

  3. #3

    Thread Starter
    Hyperactive Member JMvVliet's Avatar
    Join Date
    May 2001
    Location
    Papendrecht, Netherlands
    Posts
    310
    That's correct, but when I move the mouse over the control, it won't display the Tooltiptext.

  4. #4
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    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

  5. #5

    Thread Starter
    Hyperactive Member JMvVliet's Avatar
    Join Date
    May 2001
    Location
    Papendrecht, Netherlands
    Posts
    310
    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
  •  



Click Here to Expand Forum to Full Width