Hi all,
I want to show Form2 when button1 of Form1 is clicked.
how would i do it.
this is what i was trying to do.But it is not working
But it gives me an error ;
The event 'System.Windows.Forms.Control.Click' can only appear on the left hand side of += or -=
Form1 fm1=new Form1()
fm1.show();
EventHandler ev=fm1.button1.Click();
if (ev!=null)
{
Form2 fm2=new Form2()
fm2.show();
}
PLZ... help me