How to convert type bool to System.Windows.Forms.TextBox
<p>How can I convert <code>bool</code> to <code>System.Windows.Forms.TextBox</code>?</p>

<pre><code>txtDirectory = chkSubfolders.Checked;
</code></pre>

<p>My error is</p>

<blockquote>
  <p>Cannot implicitly convert type 'bool' to 'System.Windows.Forms.TextBox'</p>
</blockquote>
