How can i connecting two different web forms in C#?
<p>I'm working on my school project in which I need to build up one original web application. But I got an error when I tried to connect two web forms in my project. I have no idea what's wrong about it, and I have looked at many video instruction sources showing how to do it, and still I have the same error.
Here is what I have done.</p>

<p>First, I created a web from and named it <code>MainForm</code>
and also I made another one and named <code>TestForm1</code>.
Then, I put a button on TestForm1 aspx file, double-clicked the button to call the cs file, and there I coded</p>

<pre><code>protected void Button1_Click(object sender, EventArgs e)
{
    MainForm newWindow = new MainForm();
    newWindow.Show();
}
</code></pre>

<p>Here, an error comes up and I see a red line under "Show"
The error says</p>

<blockquote>
  <p>MainFor1 does not contain a definition for "Show," and no extension
  method accepting a first argument of type "MainForm" could be found.</p>
</blockquote>

<p>What is wrong about my code? I just simply made two forms and am trying to connect them.
Please tell me how I can handle this problem.</p>

<p>Sorry for my bad English, since I'm not a native speaker.
And Thank you in advance.</p>