title: c# enable button if textbox has data
body: <p>EDIT:
  Sorry for the lack of information, its a winform app in C#
  And the post is not duplicate. 
  The problem happens when i close the form witch contains the report to edit the previous form values and then the button to print the report again stays disabled instead of remaining enabled.</p>
  
  <p>I found several similar posts but none resolved my issue. 
  I have the following code do enable a <code>button</code> if a <code>textbox</code> is empty:</p>
  
  <pre><code>button3.Enabled = string.IsNullOrWhiteSpace(resposta.Text);
  </code></pre>
  
  <p>The code works but the problem is, if i click next and for some reason want to go back to alter something the <code>button</code> stays disabled even with data in the <code>textbox</code>.</p>
  
  <p>Can anyone help?</p>
  
  <p>Thanks in advance</p>