Custom Tooltip using a Panel

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Samishii23
    New Member
    • Sep 2009
    • 246

    Custom Tooltip using a Panel

    With my current project I am in need of a custom tool tip, not just a simple 1 sentence line with what the ToolTip .Net Class provides.

    I am putting together a prototype Panel with 3 Label, and 1 TextBox controls. The TextBox control will have the longest content, ranging from a 5-7 word sentence to a full paragraph.

    What I need to account for is the program window boundary. This tool tip box can and will go out of the windows boundary, unless I can make it overlap the window, which I highly doubt... Or stop it from pushing past the windows visible range. I have no idea how to do this.

    Any suggestions?
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    Get the .Bounds of the window.
    Make the tool tip
    Set the location to Bounds.Right - MyToolTip.Width , Bounds.Bottom - MyToolTip.Heigh t
    That should put it in the lower right corner

    Comment

    Working...