Solved

Font Color of disabled text

Posted on 2000-03-21
3
1,448 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

912 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

16 Experts available now in Live!

Get 1:1 Help Now