Hiding caret of textbox




I would like to hide cursor, but dont wont to have a 'grayed' text box by
using read-only property.

Or if windows would stop selecting text automatically after a calling focus
method from antoher textbox that has a text selection.

Stoitcho Goutsev \(100\)


You can hide the caret by setting the style to read-only. You don't like the
grey background? Why don't you go ahead and change the backfround color for
the this read-only text box? Use whatever color you like.
Keep in mind though that even read-only and without caret the text is still
selectable because one may not be able to change the text, but one can still
copy the text in the clipboard.

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