Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Background and Font Colors on a Disabled TextBox

Status
Not open for further replies.

markronz

IS-IT--Management
Mar 20, 2007
93
US
Hello everyone-
I have a form that I am making in Access. It has several textboxes on it with prepopulated information. All of these textboxes are currently disabled so that the user cannot edit them. There is a Modify button that I created, which makes all of these textboxes Enabled so that the user may user the text in them. The problem with this is that when you make a textbox disabled, it changes the texbox background and text to gray, which is harder to read. Of course, this is expected, but my question is, can you somehow change the background color and font color of a disabled cell? I am ok with the gray background, but I just want the text to be black instead of gray so that you can read it better.

So, to sum up, do you know how to change the font color of the text in a textbox while it is disabled?

Or is there a different solution to my problem instead of using disabled?

Thanks!
-Mark
 
You could always just set the locked property to Yes instead. If you really wanted you could grey out the background and disable the tabstop so it looks disabled.

Hope this helps

HarleyQuinn
---------------------------------
The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little. - Joe Martin

Get the most out of Tek-Tips, read FAQ222-2244 before posting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top