Solved

Font Color of disabled text

Posted on 2000-03-21
3
1,447 Views
Last Modified: 2013-12-03
I want to change the color of the font of a disabled text item from default gray to black.

I tired to set the font color
Text1.Enable=False
Text1.ForeColor=&Hfff&

Does n't work?

Any Suggestion
0
Comment
Question by:ks1973
3 Comments
 
LVL 26

Expert Comment

by:EDDYKT
ID: 2639878
I don't think that will work. Use label instead
0
 
LVL 9

Accepted Solution

by:
Dalin earned 50 total points
ID: 2639951
You can't change the color of diabled text box.
However, you have two ways to get around.

1. Put a frame, set the borderStyle to none, and backcolor to the same as the form,  put your textbox inside the frame, enable/disable the frame instead of the textbox.

or
2, Lock/unlock the textbox instead of enable/disable it.
0
 

Author Comment

by:ks1973
ID: 2643891
This alternate way works.
I am just locking the Text item  instead of adding an additional frame in the form.

Thanks
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now