Results 1 to 3 of 3

Thread: another textbox question

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2001
    Posts
    55

    another textbox question

    Is there any way to get rid of the flashing line in a text box?
    HTML/DHTML | JavaScript | CGI | VB6

  2. #2
    Matthew Gates
    Guest
    Use the HideCaret API function.


    VB Code:
    1. Private Declare Function HideCaret Lib "user32" (ByVal _
    2. hwnd As Long) As Long
    3.  
    4. Private Sub Text1_GotFocus()
    5.     HideCaret Text1.hwnd
    6. End Sub


    To show the caret, use the ShowCaret API function.


    VB Code:
    1. Private Declare Function ShowCaret Lib "user32" (ByVal _
    2. hwnd As Long) As Long
    3.  
    4. Private Sub Text1_LostFocus()
    5.     ShowCaret Text1.hwnd
    6. End Sub

  3. #3

    Thread Starter
    Member
    Join Date
    Jan 2001
    Posts
    55
    Thanks! Just what I was looking for.
    HTML/DHTML | JavaScript | CGI | VB6

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