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).
 
Back
Top