setting tooltip text

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • leosco

    setting tooltip text

    Hi.

    How do I set tooltip text for some specific text in a text box? For example, if I write

    string x = "123";

    Visual Studio would display (local variable x) if I hover the cursor over it.

    How do you do that? I couldn't find any tutorials for this, so help would be appreciated.
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Tooltip text can be set at any time. Look at the desinger code to see how it is done.
    You can probably work with the TextChanged event to examine the contents and change your tooltip text

    Comment

    Working...