Q:

Instantiating a Partial Class

So I have two classes in my project, one where it says 
namespace WindowsApplication13
{
    partial class Form1

and one where is says:
namespace WindowsApplication13
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            string text1, text2, text3, text4;
            InitializeComponent();
            text1 = textBox1.Text;
            text2 = textBox2.Text;
            text3 = textBox3.Text;
            text4 = textBox4.Text;
        }
    }
}

}
So how do I then instansiate the latter in my Class1?
I have tried 
Form1 : Form f1 = new Form1 : Form();

and
Form1 f1 = new Form1();

and 
Form f1 = new Form();

But none of them works since when I try to get a variable from the Form1 : Form, I just get the error "WindowsApplication13.Form1" does not contain a definition for "text1".
Sorry if this post is messy or bad done. I can explain more in comments if needed. Thanks!
Edit: Sorry I know the syntax if Form f1 = new Form, I just forgot while writing this!

A:

I assume this is meant to be C#? If so, you'd declare a variable and instantiate the class like this:
Form1 form = new Form1();

The Form1 : Form is part of the class declaration to show that it inherits from Form. You don't need it as part of the variable declaration.
(We can't tell what's wrong with regards to text1 - you haven't told us anything about how it's declared or how you're trying to use it.)

