469,600 Members | 2,367 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,600 developers. It's quick & easy.

RichTextBox insertion cursor

is there a way to surpress the insertion cursor in a rich
text box? for instance, i might want a RichTextBox to
display some text as a Label would-- readonly, no
insertion cursor though text could still be selected.

help!
Nov 15 '05 #1
2 2190
The RichTextBox class derives from TextBoxBase, which has a ReadOnly
property. If you set this to true, then it should prevent any editing of
the content (while allowing for copying from the Rich Text Box).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"anonymous" <an*******@discussions.microsoft.com> wrote in message
news:08****************************@phx.gbl...
is there a way to surpress the insertion cursor in a rich
text box? for instance, i might want a RichTextBox to
display some text as a Label would-- readonly, no
insertion cursor though text could still be selected.

help!

Nov 15 '05 #2
Nick, setting ReadOnly = true still leaves the insertion
cursor visible.

-----Original Message-----
The RichTextBox class derives from TextBoxBase, which has a ReadOnlyproperty. If you set this to true, then it should prevent any editing ofthe content (while allowing for copying from the Rich Text Box).
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"anonymous" <an*******@discussions.microsoft.com> wrote in messagenews:08****************************@phx.gbl...
is there a way to surpress the insertion cursor in a rich text box? for instance, i might want a RichTextBox to
display some text as a Label would-- readonly, no
insertion cursor though text could still be selected.

help!

.

Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by S.W. Rasmussen | last post: by
5 posts views Thread by pinocchio | last post: by
3 posts views Thread by Eps | last post: by
2 posts views Thread by Clark Stevens | last post: by
1 post views Thread by Peter | last post: by
8 posts views Thread by Dennis | last post: by
reply views Thread by Lou | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.