[RESOLVED] [2005] Button Disabled until text edited..
Hi Guys
I am a newbie..
I have 5 text boxes in a form.. which I populate with some data through ADO.NET when form_load occurs.
Now there is an update button in the screen. I want to keep it disabled until any of the textboxes value changes.
How can i do that?
plz hlp
thanks in advance.
Re: [2005] Button Disabled until text edited..
Just set the button's enabled property to true in the text change event of the textbox. And in form load set the buttons enabled property to false or you can set it at design time if you'd like.
Re: [2005] Button Disabled until text edited..
ok.. i knew that way.. i though there was a simpled 1-2 line way..
thanks :)
Re: [RESOLVED] [2005] Button Disabled until text edited..
well for each of the textbox's TextChanged event, you only need 1 line of code, and you can actually have 1 Textchanged event routine for all of the Textbox's using multiple controls in the Handles clause of the event