By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,990 Members | 2,324 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,990 IT Pros & Developers. It's quick & easy.

Gray outs

P: n/a
Hello Group,

Sorry to be a pain:(

Could somebody please tell me how I would gray out some TestBoxs to stop
users entering data in them until they click on a Add button for example

Thanks in advance
Regards
Si
Nov 20 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
myTextBox.Enabled = false

"Newbie!" <s_************@yahoo.co.uk> wrote in message
news:uK********************@karoo.co.uk...
Hello Group,

Sorry to be a pain:(

Could somebody please tell me how I would gray out some TestBoxs to stop
users entering data in them until they click on a Add button for example

Thanks in advance
Regards
Si

Nov 20 '05 #2

P: n/a
Cor
Hi Newbie,

I think you are looking for textbox1.enabled = false

Cor

Sorry to be a pain:(

Could somebody please tell me how I would gray out some TestBoxs to stop
users entering data in them until they click on a Add button for example

Nov 20 '05 #3

P: n/a
-----Original Message-----
Hello Group,

Sorry to be a pain:(

Could somebody please tell me how I would gray out some TestBoxs to stopusers entering data in them until they click on a Add button for example
Thanks in advance
Regards
Si
While loading the i.e in the Form load Event method set the enable property of the nessary buttons to "FALSE" and
in the ADD button's(as mentioned by you) click event
method set all the property(enable) to "TRUE"

if u have any further queries, feel free to send a mail,
bye,
Chellapa

Nov 20 '05 #4

P: n/a
in properties window if you have Textbox1

set enabled property to false

Double click on your add button and in the Click event

place the following code
Textbox1.enabled=true

HTH

Shane

"Newbie!" <s_************@yahoo.co.uk> wrote in message
news:uK********************@karoo.co.uk...
Hello Group,

Sorry to be a pain:(

Could somebody please tell me how I would gray out some TestBoxs to stop
users entering data in them until they click on a Add button for example

Thanks in advance
Regards
Si

Nov 20 '05 #5

P: n/a
Hi,

If you want the textbox to be gray try setting the readonly property
to true.

Ken
----------------------
"Newbie!" <s_************@yahoo.co.uk> wrote in message
news:uK********************@karoo.co.uk...
Hello Group,

Sorry to be a pain:(

Could somebody please tell me how I would gray out some TestBoxs to stop
users entering data in them until they click on a Add button for example

Thanks in advance
Regards
Si

Nov 20 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.