How to hide the caret?

SyntaxEditor for Windows Forms Forum

Posted 13 years ago by shark92651
Avatar
I tried setting Caret.BlinkInterval = 0, but that just makes it stop blinking.

Comments (6)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
The only way to not have a caret is for the SyntaxEditor.Enabled property to be set to false. What do you need the caret turned off for and still have the control enabled?


Actipro Software Support

Posted 13 years ago by shark92651
Avatar
I have a case where I want to use SyntaxEditor for an output control. It should be readonly, but I still want the user to be able to select text and copy to clipboard.
Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
In the case where you have a read-only control, standard practice is to display a caret so the user knows where the selection ends. Is it that you don't want the control to get focused when the mouse clicks on it? But then in that situation how would they copy the text if it didn't have focus?


Actipro Software Support

Posted 13 years ago by Boyd - Automated Software Testing Consultant / Developer, Patterson Consulting, LLC
Avatar
Maybe you could set a property to hide the caret when the control didn't have focus but show the caret when it does have focus.
Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Actually it's already like that. The caret only shows when the control has focus.


Actipro Software Support

Posted 13 years ago by Boyd - Automated Software Testing Consultant / Developer, Patterson Consulting, LLC
Avatar
Silly me... of course it is :)
The latest build of this product (v2018.1 build 0341) was released 6 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.