M mojoman Member Joined Nov 21, 2006 Messages 20 Programming Experience Beginner Nov 27, 2006 #1 What command do I use to hide the caret?
vis781 Well-known member Joined Aug 30, 2005 Messages 2,016 Location Cambridge, UK Programming Experience 5-10 Nov 27, 2006 #2 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) Upvote 0 Downvote
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)
M mojoman Member Joined Nov 21, 2006 Messages 20 Programming Experience Beginner Nov 28, 2006 #3 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? Upvote 0 Downvote
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?
JohnH VB.NET Forum Moderator Staff member Joined Dec 17, 2005 Messages 15,799 Location Norway Programming Experience 10+ Nov 28, 2006 #4 That's because you didn't do this: vis781 said: Import the System.Runtime.InteropServices Namespace Click to expand... Upvote 0 Downvote
That's because you didn't do this: vis781 said: Import the System.Runtime.InteropServices Namespace Click to expand...
M mojoman Member Joined Nov 21, 2006 Messages 20 Programming Experience Beginner Nov 28, 2006 #5 I did... I did put that import statement and it says the code in parentheses is not valid in the namespace. Upvote 0 Downvote
I did... I did put that import statement and it says the code in parentheses is not valid in the namespace.
vis781 Well-known member Joined Aug 30, 2005 Messages 2,016 Location Cambridge, UK Programming Experience 5-10 Nov 28, 2006 #6 can you show us where you have put the code? Upvote 0 Downvote