inter-Form communication in VB.Net
<p>I have a login form called <code>Admin</code>, which has a <code>Textbox1</code> for username and the main form called <code>Main</code>, which has a <code>Label1</code>.</p>

<p>My goal is for <code>Label1.Text</code> to display the current value of <code>Textbox1.Text</code>.</p>

<p>The login form has this succesfully working code:</p>

<pre><code>Public Sub ShowDialogue()
    Main.Label1.Text = Textbox1.Text

End Sub
</code></pre>

<p>My problem is that the Main form code does not work, as follows:</p>

<pre><code>Public Sub ShowDialogue()
    Admin.Label1.Text = Textbox1.Text

End Sub
</code></pre>

<p>the above code works when I use this code in main form to show the admin form.</p>

<pre><code>Admin.ShowDialogue()
</code></pre>

<p>Since, I have changed the code in Main form to the following:</p>

<pre><code>Using AdminNew as new Admin()
AdminNew.ShowDialogue()
End Using
</code></pre>

<p>Since this change, calling the value from <code>Textbox1</code> login form does not work.</p>

<p>Can somebody help me to figure out how to call the <code>Textbox1</code> on Main from the Admin form, even if I use the using block?</p>

<p>Any help will be much appreciated.</p>