How do you change the caret to the insert type (a flashing box instead of a flashing line) in a textbox in C#?
I've set textbox.InsertKeyMode = InsertKeyMode.Overwrite and now I w开发者_开发知识库ant the caret to change to the traditional flashing box.
How do I do this?
Thanks!
Isaac
There is no managed support for dealing with carets in the .NET Framework. You'll have to use p/invoke to change the caret:
Carets: http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/resources/carets.asp
http://pinvoke.net is a valuable resource when using p/invoke.
精彩评论