简体   繁体   中英

WinForms Set Richtextbox caret to “_”

Is there a way to change WinForms richtextbox's caret from "|"to "_"?
I tried finding some properties, what may change that, but i found only rtb.Cursor which sets cursor of mouse pointer, when it is over the control.

I found two examples:

However they both involve using DLLIMPORT to get and overwrite some old, unmanaged functions of Windows. Not exactly a trivial and trouble free operation. Be certain you really need this.

Of course as for many problem cases from Windows Forms, this stuff is usally pretty easy to do in WPF /UWP.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM