how to show/hide forms ?
i am trying to access StudentArea.cs form and hiding the current one Index.cs. Beside the Button in index.cs i have written the following code:
this.Close();
StudentArea.Show();
i am getting the following error:
C:\Documents and Settings\Administrator\My Documents\Visual Studio Projects\online_exam_csharp\index.cs(118): An object reference is required for the nonstatic field, method, or property 'System.Windows.Forms.Control.Show()'
Any Idea!
|