Hack, That api should be called with in a timer , correct ?
Code:
Option Explicit
Private Declare Function HideCaret Lib "user32" (ByVal hwnd As Long) As Long
Private Sub Timer1_Timer()
HideCaret Me.Text1.hwnd
End Sub
Hack, That api should be called with in a timer , correct ?
Code:
Option Explicit
Private Declare Function HideCaret Lib "user32" (ByVal hwnd As Long) As Long
Private Sub Timer1_Timer()
HideCaret Me.Text1.hwnd
End Sub
ok, assume you put that code on TextBox_Got Focus event.
Now you click on the text box, so the caret will not be displayed.
now you click another window i.e. task bar. now again you click your form to get back the focus. Now the caret will be shown on the text box