to make the text box read only

nisha

Registered User.
Local time
Today, 15:02
Joined
Aug 18, 2009
Messages
22
Hi

I want to make the text box disabled so that user is restricted for entering any thing but the text must be displayed in black color(default one). For this i made locked = true but still user can enter. Then i also changed the enabled to false. this restricted.. but is displaying the text in grey color. can i change the colour to black. i tried the forecolor property also.. but no luck.. :o Guess i am missing something..:confused:

Any suggestions.
 
Locked = True should prevent the user being able to change the value.:confused:
Enabled = False prevents it from even being selected or clicked.

Disabled and Locked together will disable it without turning it grey.
BTW If you set the Border to Transparent it will behave just like text directly on the background of the form.
 
both the properties if i set it turns out grey..:o and the border also is set to transparent...

i made locked = true.. but still user can key in values in tht text box..
 
actually the textbox used is an Active x control (OLE Class - Microsoft Forms 2.0 and class - Forms.TextBox.1) . Guess that is locked is not making it not editable. For normal textbox i tried and it is getting locked fine.
 

Users who are viewing this thread

Back
Top Bottom