Results 1 to 4 of 4

Thread: help ttt

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2000
    Location
    Panama
    Posts
    17

    Angry

    hello
    how can i make a tooltiptext in a enabled textbox
    i use if txt.enabled = true then txt.tooltiptext = "message" and not working
    help me please
    farizza



  2. #2
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    This code is working for me
    Code:
    Private Sub Command1_Click()
    Text1.Enabled = True
    Text1.ToolTipText = "message"
    End Sub
    After this i can see the tooltiptext when i hold the mouse over the text box.
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  3. #3
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    736
    The code should work just fine. You might double-check where you are executing the code from.

  4. #4
    Fanatic Member
    Join Date
    Nov 2000
    Location
    Worldwide in the Sun
    Posts
    566

    Try This


    Private Sub Text1_GotFocus()
    Text1.Enabled = True
    Text1.ToolTipText = "message"
    End Sub

    Private Sub Text1_LostFocus()
    Text1.Enabled = False
    Text1.ToolTipText = ""
    End Sub


    Cheers
    Ray
    Ray

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