473,511 Members | 14,975 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

change color of part of text in textbox?

86 New Member
Hi,

I am wondering if this it's possible to change the color of part of a text in a textbox.

I have a main form that opens on startup and this is called

Label24.Caption = "Closed Problem Tickets: " & DCount("trouble_no", "user_problem_log", "status = 'CLOSED'")

When display it shows the following:
Closed Problem Tickets: (#)

is it possible to say change the color (not backcolor) of only (#) to red?

Thanks!
Jul 19 '11 #1
2 3904
Jeffrey Tan
86 New Member
is it called ForeColor? I tried it and it changes the entire text to the specified color.

I guess a workaround is to just have two labels and use forecolor on only one of them.
Jul 19 '11 #2
pod
298 Contributor
I believe your workaround is the only solution, if not the simplest
Jul 19 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
2832
by: Christofer Bustad | last post by:
Hi! Could someone give a clue of how I can set the color of text (LTEXT and RTEXT) in dialogs created using an .rc-file? Any help is very appreciated! Christofer
11
19570
by: Yeah | last post by:
I have a multiple choice quiz where I would like to use CSS to change the color of the answers upon clicking them. I would like to present the right and wrong answers up front, rather than direct...
2
3886
by: Xiphias | last post by:
Hi, Im trying to change the color of a text box on a report that im printing from a form. On the form I got a check box that has to tricker the color of that textbox on the printed report....
1
4089
by: Serdge Kooleman | last post by:
Hi! i have a windows app, DataGrid on it... when i clicked at cell, it's appear small edit box in it. how to change foregraund and background color of this text? (by default it is blue...
1
1095
by: roni | last post by:
in datagrid control , how can i change the width of textbox in edit mode (on <asp:BoundColumn> ) ?
2
6348
by: XxLicherxX | last post by:
Hello, I have a console application that I am writing in VB.net. Is it possible to change the color of the console text from white to something else? I know I could call an external .bat file,...
1
5877
by: rangababu | last post by:
hi friends i got a problem in changing the color of the textbox in my code i want color of textbox is changed on clicking a button. can any help me to solve this problem plz hurry up bye
0
1452
by: write2jagdeep | last post by:
i Want to change color of text item when got focus in forms builber d2k and revert that color when lost focus. Pls anser it urgently.
3
4843
by: crjunk | last post by:
Hi Everyone, I have a web form that I would like to enhance. What I'd like to do is this: A user adds/edits the text in a textbox. I want the adjoining label to change color. Example: User...
1
1231
oranoos3000
by: oranoos3000 | last post by:
hi i'd like to page for insert user's post the same page for insert new post in this site that user can bold or italic or even change color part of typed text and or add small pictures for...
0
7153
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
7371
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
7432
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...
1
7093
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
7517
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...
1
5077
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
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
791
muto222
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.