开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜