473,473 Members | 2,134 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

TextBox + colour

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
4 1006
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
"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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Mr. B | last post by:
While at first this may seem a simple tast, it has plagued me for a while... What I want to do is to have the background colour of something like a TextBox to change from (say) White to Yellow to...
2
by: Mamatha | last post by:
Hi I want to add an icon to the textbox's text. I don't know how to display icon in textbox in VB.NET. If any one knows please let me know. Thanks in advance. Mamatha
9
by: ujjc001 | last post by:
hello, I am in asp.net and have a form with an asp textbox. I specify a cssclass for the text box having the following: ..Textbox { font-size: 8pt; list-style-type: none; background-color:...
8
by: Filipe Marcelino | last post by:
Hi, I'm trying to create a textbox inheriting from the standard textbox. I would like to: 1. repaint the textbox border; 2. define a color for that border; Till now I made this:
4
by: H-S | last post by:
Please help. This is a real puzzler! Originally posted on microsoft.public.dotnet.framework.windowsforms but no answer found! I have a read-only textBox which shows the results of a selection...
6
by: Gari | last post by:
Hello everyone, I have two forms: FORM1 and FORM2. On FORM1 there is a check box (CHECK). When CHECK is checked, the data is updated in a YES/NO data type table (TABLE) field. On FORM2 I...
6
by: Dan Soendergaard | last post by:
Hi, I'm writing my own control and I would like it to integrate nicely into the rest of my application, which uses the standard controls primarely. I therefore wanted my control to use the same...
16
by: mj.redfox.mj | last post by:
Can anyone help? I have a textbox which I'm programatically adding by using the following code: txtTest = New TextBox txtTest.ID = "txtLeft" + cntCount.ToString...
1
Dököll
by: Dököll | last post by:
Greetings, Good buddies! I am for the first time, since I started learning VB, going to build an application I wanted to build for my first son, a language and activities program that will allow...
9
by: Phill W. | last post by:
VB.Net 2005 SP1 Windows Forms Application What's the fastest way to append text to a TextBox? I have an application that monitors data written to text files. It needs to scan some fairly...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.