Hiding the Caret

Import the System.Runtime.InteropServices Namespace

VB.NET:
<DllImport("User32.dll")> _
Public Shared Function HideCaret(Byval hWnd As Intptr) As Integer
End Function
And call with

VB.NET:
HideCaret(Intptr.Zero)
 
Did not work

I entered in the code you suggested but it does not recognize the code within parentheses (importing the dll file). ANy other advice?
 
Back
Top