B
Blacky
Hi
There are so many mosts on here that searching for previous posts will be
impossible. So please excuse if this questions been asked before.
I'm rather new to c# development bu not windows development. I'm writing a
MDI application with my main form as a MDI container. I'm opening with in
this form a dialog which is a child of mainform, and then using the first
dialog opening another (second)dialog to enter data that that will be
procesed and then displayed in the first dialog. But I can close the first
dialog while the second is still open. And this is a big big problem. Now I
can check if 2 is open when closing 1. But I'd rather use Non modal dialogs
than modal, for many more other reasons. But are having a problem with
ShowDialog when the form is a child.
Here is the source when I open a dialog inside the MDI Container..
if( OpnComp == null)
{
OpnComp = new Comp( strU, strH, strP);
OpnComp.MdiParent = this;
}
else
{
if( OpnComp.IsDisposed)
{
OpnComp = new Comp( strU, strH, strP);
OpnComp.MdiParent = this;
}
}
OpnComp.Show();
How can I create a non modal dialog to force user to enter data, and not
open anything else while this non modal dialog is open?
Many Thanks
Nick
There are so many mosts on here that searching for previous posts will be
impossible. So please excuse if this questions been asked before.
I'm rather new to c# development bu not windows development. I'm writing a
MDI application with my main form as a MDI container. I'm opening with in
this form a dialog which is a child of mainform, and then using the first
dialog opening another (second)dialog to enter data that that will be
procesed and then displayed in the first dialog. But I can close the first
dialog while the second is still open. And this is a big big problem. Now I
can check if 2 is open when closing 1. But I'd rather use Non modal dialogs
than modal, for many more other reasons. But are having a problem with
ShowDialog when the form is a child.
Here is the source when I open a dialog inside the MDI Container..
if( OpnComp == null)
{
OpnComp = new Comp( strU, strH, strP);
OpnComp.MdiParent = this;
}
else
{
if( OpnComp.IsDisposed)
{
OpnComp = new Comp( strU, strH, strP);
OpnComp.MdiParent = this;
}
}
OpnComp.Show();
How can I create a non modal dialog to force user to enter data, and not
open anything else while this non modal dialog is open?
Many Thanks
Nick