class form1 //in file form1.cs
{
class myClass
{}
public static myClass myInstance;
private void frmMain_Load(object sender, System.EventArgs e) //this is the
//function whicih will be called at the initialize the windows
{
myInstance = new myClass();
}
}
class form2 //in file form2.cs but both class should be in the same
//namespace, or you shuold refer the name of the namespace
{
form1.myInstance;
}