By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,557 Members | 1,603 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,557 IT Pros & Developers. It's quick & easy.

TextBox + colour

P: n/a
Hi.
I would like to ask, if it's possible make text in Classic TextBox control
coloured. I think like in RichTextBox. One Part of text will have one color,
second part text another color.

Maybe I colud overload OnPaint method, but I don't know how.-
Is on Internet any example.
Thank you very much for answers.
Nov 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Hi,

You need to use the richtextbox.

Ken
--------------
"Markk" <ek****@szm.sk> wrote in message
news:uG**************@TK2MSFTNGP09.phx.gbl...
Hi.
I would like to ask, if it's possible make text in Classic TextBox control
coloured. I think like in RichTextBox. One Part of text will have one color,
second part text another color.

Maybe I colud overload OnPaint method, but I don't know how.-
Is on Internet any example.
Thank you very much for answers.

Nov 21 '05 #2

P: n/a
"Markk" <ek****@szm.sk> schrieb:
I would like to ask, if it's possible make text in Classic TextBox control
coloured. I think like in RichTextBox. One Part of text will have one
color, second part text another color.


The textbox control doesn' support that, that's why the richtextbox control
exists. Is there any reason for not using the richtextbox control?

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

Nov 21 '05 #3

P: n/a
Hi.
I trying to use classic textbox, because I would like to make highlighting
editor.
and Richtext box is too slow when I want coloured many text.
Or any Ideas How Can I make highlighting editor with RTB?
I watch on SharpDevelop, but it's too complicated to understand for me.
Thanks

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:OV**************@TK2MSFTNGP10.phx.gbl...
"Markk" <ek****@szm.sk> schrieb:
I would like to ask, if it's possible make text in Classic TextBox
control coloured. I think like in RichTextBox. One Part of text will have
one color, second part text another color.


The textbox control doesn' support that, that's why the richtextbox
control exists. Is there any reason for not using the richtextbox
control?

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

Nov 21 '05 #4

P: n/a
http://www.startvbdotnet.com/controls/rtb.aspx
this one is better in below
http://www.codeproject.com/vb/net/richtextboxhs.asp
http://www.codeproject.com/vb/net/tarrorichtextbox.asp

Markk wrote:
Hi.
I trying to use classic textbox, because I would like to make highlighting
editor.
and Richtext box is too slow when I want coloured many text.
Or any Ideas How Can I make highlighting editor with RTB?
I watch on SharpDevelop, but it's too complicated to understand for me.
Thanks

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:OV**************@TK2MSFTNGP10.phx.gbl...

"Markk" <ek****@szm.sk> schrieb:

I would like to ask, if it's possible make text in Classic TextBox
control coloured. I think like in RichTextBox. One Part of text will have
one color, second part text another color.

The textbox control doesn' support that, that's why the richtextbox
control exists. Is there any reason for not using the richtextbox
control?

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



Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.