Hi Folks!

I just begin playing with the RichTextBox, mhh... certainly a vast topic.
Anyway I want to prevent the text of being edited.

There is no Editable property. I try set the Enabled property but then the
text don't even scrol (not too mention I want to use URL).

How do I do that?

Re: RichTextBox question: Some progress... by Lloyd

Lloyd
Sat May 21 08:22:15 CDT 2005

Apparently if I select everything and set SelectionProtected to true it
almost work, however ther are a few problem:
- the user could still write at the end, anyway to get around that?
- I have to select everything, it has the nasty side effect to scroll the
RichTextBox..... as a general rule if I want to modify some text attribute I
have to select it, which scroll the RichTextBox, kind of annoying.. anyway
to get around that?

"Lloyd Dupont" <ld@NewsAccount.galador.net> wrote in message
news:ebjJgYgXFHA.3584@TK2MSFTNGP14.phx.gbl...
> Hi Folks!
>
> I just begin playing with the RichTextBox, mhh... certainly a vast topic.
> Anyway I want to prevent the text of being edited.
>
> There is no Editable property. I try set the Enabled property but then the
> text don't even scrol (not too mention I want to use URL).
>
> How do I do that?
>



Re: RichTextBox question by Herfried

Herfried
Sat May 21 10:09:34 CDT 2005

"Lloyd Dupont" <ld@NewsAccount.galador.net> schrieb:
> I just begin playing with the RichTextBox, mhh... certainly a vast topic.
> Anyway I want to prevent the text of being edited.
>
> There is no Editable property. I try set the Enabled property but then the
> text don't even scrol (not too mention I want to use URL).

Take a look at the control's 'ReadOnly' property.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>


Re: RichTextBox question by Lloyd

Lloyd
Sat May 21 17:34:13 CDT 2005

How did I miss this one?! Perfect!

Anyway there is still the problem of selecting area of text (to set the
style) without scrolling the view....

"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:OiSFebhXFHA.3760@TK2MSFTNGP15.phx.gbl...
> "Lloyd Dupont" <ld@NewsAccount.galador.net> schrieb:
>> I just begin playing with the RichTextBox, mhh... certainly a vast topic.
>> Anyway I want to prevent the text of being edited.
>>
>> There is no Editable property. I try set the Enabled property but then
>> the text don't even scrol (not too mention I want to use URL).
>
> Take a look at the control's 'ReadOnly' property.
>
> --
> M S Herfried K. Wagner
> M V P <URL:http://dotnet.mvps.org/>
> V B <URL:http://classicvb.org/petition/>