CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2003
    Posts
    23

    tooltiptext property

    Hi there

    What is the equivalent tooltiptext property for Vb.net. Once the mouse if over a textbox I want a comment to appear.

    Thanks

  2. #2
    Join Date
    Jul 2000
    Posts
    70

    Very easy with VB .Net

    It's very easy with VB .Net

    All you have to do is this:
    In the designer, drag the ToolTip object from the Toolbox.
    It will show up in the components section of the designer.

    Now all controls on the form with have a ToolTip on ToolTip1 property in the properties window. You can set it from there.


    If you want to set a tooltip for a control at run time, you do the above steps, then use the following code:

    ToolTip1.SetToolTip(aControl, "The New Message")

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

Featured