caret in TextBox

  • Thread starter Thread starter Coder
  • Start date Start date
C

Coder

Is there a way to disable or hide the caret in a textbox without disabling
the textbox?
 
Yes, remove the focus from it by setting focus to some other control. If you
need to have window focused and hide the caret, you can try P/Invoking
HideCaret(HWND).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top