CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2001
    Location
    Denmark
    Posts
    453

    Question Setting Enabled property in the code

    I have a radiobutton, that when clicked is supposed to enable and disable some controls. But apparently it doesn't work...
    Code:
    		private void RbUseSafID_CheckedChanged(object sender, System.EventArgs e)
    		{
    			TbPassword.Enabled=true;
    			TbUserID.Enabled=true;
    			TbWinUserID.Enabled=false;
    		}
    Above is my code. The Tbxxx are textboxes.
    When the event fires, absolutely NO change is made to the text boxes. Any bright ideas?

    thanks in advance

  2. #2
    Join Date
    Jun 2001
    Location
    Denmark
    Posts
    453

    Re: Setting Enabled property in the code

    Oops...found the bug

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

Featured