开发者

How do you change the caret to the insert type (a flashing box instead of a flashing line) in a textbox in C#?

开发者 https://www.devze.com 2023-01-30 14:56 出处:网络
I\'ve set textbox.InsertKeyMode = InsertKeyMode.Overwrite and now I w开发者_开发知识库ant the caret to change to the traditional flashing box.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消