|
-
Jan 16th, 2008, 11:55 PM
#1
Thread Starter
Addicted Member
[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.
-
Jan 17th, 2008, 12:02 AM
#2
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.
-
Jan 17th, 2008, 12:04 AM
#3
Thread Starter
Addicted Member
Re: [2005] Button Disabled until text edited..
ok.. i knew that way.. i though there was a simpled 1-2 line way..
thanks
-
Jan 17th, 2008, 11:09 AM
#4
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|