Results 1 to 4 of 4

Thread: [RESOLVED] [2005] Button Disabled until text edited..

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2006
    Posts
    139

    Resolved [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.

  2. #2
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    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.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Dec 2006
    Posts
    139

    Re: [2005] Button Disabled until text edited..

    ok.. i knew that way.. i though there was a simpled 1-2 line way..

    thanks

  4. #4
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    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
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width