Re: Changing property of an object from a modal form.
- From: "rhaazy" <rhaazy@xxxxxxxxx>
- Date: 20 Jul 2006 05:36:27 -0700
I have no idea whats going on here. If you could explain a bit more
how this is going to help me with my problem maybe I can get it
working. Making chose changes doesn't get me any closer, if anything
the compiler just throws more errors..
Brian Richards wrote:
You need to do something like:
private void frmMDIMain_Load(object sender, System.EventArgs e)
{
Form frmLogin = new frmLogin();
frmLogin.Closing += new
System.ComponentModel.CancelEventHandler(this.frmLogin_Closing);
frmLogin.ShowDialog();
}
private void frmLogin_Closing(object sender,
System.ComponentModel.CancelEventArgs e)
{
panel5.Visible = true;
button1.Visible = true;
panel6.Visible = true;
dataGrid1.Visible = true;
}
frmLogin.Closing += new ClosingHan
"rhaazy" <rhaazy@xxxxxxxxx> wrote in message
news:1153333360.583743.120260@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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.
.
- Follow-Ups:
- Re: Changing property of an object from a modal form.
- From: Pritcham
- Re: Changing property of an object from a modal form.
- References:
- Changing property of an object from a modal form.
- From: rhaazy
- Re: Changing property of an object from a modal form.
- From: Brian Richards
- Changing property of an object from a modal form.
- Prev by Date: Re: Process.Exited and MS Word
- Next by Date: Re: Using Microsoft Chart Control in dotnet
- Previous by thread: Re: Changing property of an object from a modal form.
- Next by thread: Re: Changing property of an object from a modal form.
- Index(es):