CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2008
    Posts
    21

    How to enable a text box with a button

    If a text box is disabled (and is grayed out), how can I enable it with a button click?

    Code:
    private void button1_Click(object sender, EventArgs e)
            {
                
            }

  2. #2
    Join Date
    Nov 2002
    Location
    .NET 3.5 VS2008
    Posts
    1,039

    Re: How to enable a text box with a button

    Seems quite easy. Try this...
    Code:
    textBox.Enabled = true

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