473,398 Members | 2,113 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Character color

Hello all,
Is there a way to make chars in a line of text different colors? (maybe
using escape sequences). I'm talking about say in the text "Test" making the
T one color, and e another color and so on...
Thanks

Cheers :)
Nov 16 '05 #1
5 1278
Are you referring to text printed to the Console?

--
Jared Parson [MSFT]
ja******@online.microsoft.com

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

"Randy" <te**@temp.com> wrote in message
news:OG*************@TK2MSFTNGP10.phx.gbl...
Hello all,
Is there a way to make chars in a line of text different colors? (maybe
using escape sequences). I'm talking about say in the text "Test" making the T one color, and e another color and so on...
Thanks

Cheers :)

Nov 16 '05 #2
No not to the console, say I have a messagebox and I want to have certain
words in the text a different color than the rest...to highlight that word.
Can this be done?

Thanks
"Jared Parsons [MSFT]" <ja******@online.microsoft.com> wrote in message
news:uT**************@TK2MSFTNGP09.phx.gbl...
Are you referring to text printed to the Console?

--
Jared Parson [MSFT]
ja******@online.microsoft.com

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

"Randy" <te**@temp.com> wrote in message
news:OG*************@TK2MSFTNGP10.phx.gbl...
Hello all,
Is there a way to make chars in a line of text different colors? (maybe
using escape sequences). I'm talking about say in the text "Test" making

the
T one color, and e another color and so on...
Thanks

Cheers :)


Nov 16 '05 #3
Not that I know of. You might have to roll your own message box if you want
that functionality.

--
Jared Parson [MSFT]
ja******@online.microsoft.com

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

"Randy" <te**@temp.com> wrote in message
news:ef**************@TK2MSFTNGP09.phx.gbl...
No not to the console, say I have a messagebox and I want to have certain
words in the text a different color than the rest...to highlight that word. Can this be done?

Thanks
"Jared Parsons [MSFT]" <ja******@online.microsoft.com> wrote in message
news:uT**************@TK2MSFTNGP09.phx.gbl...
Are you referring to text printed to the Console?

--
Jared Parson [MSFT]
ja******@online.microsoft.com

This posting is provided "AS IS" with no warranties, and confers no

rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

"Randy" <te**@temp.com> wrote in message
news:OG*************@TK2MSFTNGP10.phx.gbl...
Hello all,
Is there a way to make chars in a line of text different colors? (maybe using escape sequences). I'm talking about say in the text "Test"
making the
T one color, and e another color and so on...
Thanks

Cheers :)



Nov 16 '05 #4
Vinny Vinn wrote:
Is this possible in textboxes(without creating your own control)?


It's possible in a RichEdit.
Nov 16 '05 #5
C# Learner wrote:
Vinny Vinn wrote:
Is this possible in textboxes(without creating your own control)?


It's possible in a RichEdit.


Oops... RichTextBox.
Nov 16 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

76
by: Zenobia | last post by:
How do I display character 151 (long hyphen) in XHTML (utf-8) ? Is there another character that will substitute? The W3C validation parser, http://validator.w3.org, tells me that this character...
9
by: Safalra | last post by:
The idea here is relatively simple: a java program (I'm using JDK1.4 if that makes a difference) that loads an HTML file, removes invalid characters (or replaces them in the case of common ones...
37
by: chandy | last post by:
Hi, I have an Html document that declares that it uses the utf-8 character set. As this document is editable via a web interface I need to make sure than high-ascii characters that may be...
10
by: dev_kh | last post by:
Hi, I am facing a weird issue. Here it goes: I am writing a c# app for a client with which I will read some data and generate a .dat file for them from that data. Then the client will read...
7
by: teachtiro | last post by:
Hi, 'C' says \ is the escape character to be used when characters are to be interpreted in an uncommon sense, e.g. \t usage in printf(), but for printing % through printf(), i have read that %%...
21
by: aegis | last post by:
7.4#1 states The header <ctype.h> declares several functions useful for classifying and mapping characters.166) In all cases the argument is an int, the value of which shall be representable as an...
6
by: Pavils Jurjans | last post by:
Hello, I am experiencing a weird behaviour on my ASP.NET project. The project consists from client-side, which can be whatever environment - web page, EXE application, etc. The client sends HTTP...
18
by: james | last post by:
Hi, I am loading a CSV file ( Comma Seperated Value) into a Richtext box. I have a routine that splits the data up when it hits the "," and then copies the results into a listbox. The data also...
40
by: Shmuel (Seymour J.) Metz | last post by:
I'd like to include some Hebrew names in a web page. HTML 4 doesn't appear to include character attributes for ISO-8859-8. I'd prefer avoiding numeric references, e.g.,...
9
by: simchajoy2000 | last post by:
Hi, I know what the ASCII Character Codes are for the 2nd and 3rd powers in VB.NET but I can't find the 6th power anywhere - does anyone know what it might be or if it even exists? Joy
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...

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.