G
Guest
I have a form that I open with ShowDialog(). I have a background form that I
initially open to make a background behind the user input form. The code is
like this:
static Form BackForm=null;
public bool InputMethod()
{
if(BackForm==null){
BackForm = new Form();
// set up backform and make it maximized.
BackForm.Show();
}
Form InputForm=new Form();
// set up the input form here.
InputForm.ShowDialog(BackForm);
}
This basically works the way that I want it to, I call InputMethod() a bunch
of times, it puts up the BackForm once, then the smaller InputForm comes and
goes for input. The problem is that BackForm does not behave properly in
Windows, if you minimize InputForm, BackForm is still there, and does not
minimize, and can not be minimized. Is there a way to do this? Is there
something like an OnMinimize event that I could override for InputForm, and
minimize BackForm in it? Or a better way of having a background that does not
flicker between InputMethod() calls, without InputForm being maximized?
Thanks for any suggestions.
initially open to make a background behind the user input form. The code is
like this:
static Form BackForm=null;
public bool InputMethod()
{
if(BackForm==null){
BackForm = new Form();
// set up backform and make it maximized.
BackForm.Show();
}
Form InputForm=new Form();
// set up the input form here.
InputForm.ShowDialog(BackForm);
}
This basically works the way that I want it to, I call InputMethod() a bunch
of times, it puts up the BackForm once, then the smaller InputForm comes and
goes for input. The problem is that BackForm does not behave properly in
Windows, if you minimize InputForm, BackForm is still there, and does not
minimize, and can not be minimized. Is there a way to do this? Is there
something like an OnMinimize event that I could override for InputForm, and
minimize BackForm in it? Or a better way of having a background that does not
flicker between InputMethod() calls, without InputForm being maximized?
Thanks for any suggestions.