473,587 Members | 2,547 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_l og", "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 3919
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
2838
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
19585
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 the user to a separate page with all correct answers. Do the answers have to be "links" for this to work? They have to be inactive links, because...
2
3893
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. If checked color is red else just black. But I dont know how to do it.
1
4092
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 selection on gray background)... i want red background for example... -- thank you serge
1
1103
by: roni | last post by:
in datagrid control , how can i change the width of textbox in edit mode (on <asp:BoundColumn> ) ?
2
6351
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, but I would rather do it in VB.net. Any responses are greatly appreciated.
1
5885
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
1458
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
4850
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 edits text in txtCaseNumber. The cursor leaves txtCaseNumber. Code executes and turns lblCaseNumber text from black to red.
1
1236
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 example a list of pictures show in a list and with selection user from this list this picture show in page thank you
0
7920
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
1
7973
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8220
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6626
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5718
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2358
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 we have to send another system
1
1454
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1189
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.