If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
how can change the back color of a disabled textbox?
Dear all,
In order to prevent the accidental editing of records, I've set all the textbox controls to Disabled state so that the user can't amend the records accidentially unless one button is clicked to enable all the textboxes. However, my colleagues complained that in such way, it's very hard for them to view the field's data in the textbox, since it's disabled and the color is very dim. Now, how can I do to change the color of the textbox even if it is in disabled state? Or should I use any other method to prevent the accidental editing of records in textboxes? Thanks so much!!! Gary -- Message posted via AccessMonster.com http://www.accessmonster.com/Uwe/For...forms/200608/1 |
#2
|
|||
|
|||
how can change the back color of a disabled textbox?
Set the Enabled property to No and the Locked property to Yes. That will
remove the "greyed-out" color and leave the textbox looking the same as if were unlocked and enabled. Often, when this is done, it's good to change the Special Effect from the default sunken value to the flat value so that the user knows/sees something is different about the textbox. -- Ken Snell MS ACCESS MVP "hkgary33 via AccessMonster.com" u23950@uwe wrote in message news:655a94f4527df@uwe... Dear all, In order to prevent the accidental editing of records, I've set all the textbox controls to Disabled state so that the user can't amend the records accidentially unless one button is clicked to enable all the textboxes. However, my colleagues complained that in such way, it's very hard for them to view the field's data in the textbox, since it's disabled and the color is very dim. Now, how can I do to change the color of the textbox even if it is in disabled state? Or should I use any other method to prevent the accidental editing of records in textboxes? Thanks so much!!! Gary -- Message posted via AccessMonster.com http://www.accessmonster.com/Uwe/For...forms/200608/1 |
Thread Tools | |
Display Modes | |
|
|