R
rhaazy
using C# VS2003
private void frmMDIMain_Load(object sender, System.EventArgs e)
{
Form frmLogin = new frmLogin();
frmLogin.ShowDialog();
}
private void frmLogin_Closing(object sender,
System.ComponentModel.CancelEventArgs e)
{
frmMDIMain.panel5.Visible = true;
frmMDIMain.button1.Visible = true;
frmMDIMain.panel6.Visible = true;
frmMDIMain.dataGrid1.Visible = true;
}
How do I make the code in frmLogin_Closing work? I made the objects
public but the compiler still tells me I have to create an object
reference... There must be something I'm missing any help would be
great.
private void frmMDIMain_Load(object sender, System.EventArgs e)
{
Form frmLogin = new frmLogin();
frmLogin.ShowDialog();
}
private void frmLogin_Closing(object sender,
System.ComponentModel.CancelEventArgs e)
{
frmMDIMain.panel5.Visible = true;
frmMDIMain.button1.Visible = true;
frmMDIMain.panel6.Visible = true;
frmMDIMain.dataGrid1.Visible = true;
}
How do I make the code in frmLogin_Closing work? I made the objects
public but the compiler still tells me I have to create an object
reference... There must be something I'm missing any help would be
great.