hi all
i have a main form and it displays a modelss dialog.
when the user brings the dialog into focus,
the main form is left in the back.
how can i bring the main form into the front,
when its modeless dialog is selected into focus?
my code:
class MyMainForm
{
MyModelessDalog _MyModelessDalog = new MyModelessDalog();
MyMainForm()
{
this._MyModelessDalog.Owner = this;
}
void ShowDialog()
{
this._MyModelessDalog.Show();
}
}
class MyModelessDalog
{
}
Assaf
DalePres - 01 Feb 2004 15:44 GMT
Do it this way (I am changing the form names for simplicity)
public class Form1()
{
.
.
Form2 form2 = new Form2();
this.AddOwnedForms(form2);
form2.Show();
.
.
}
Dale
> hi all
>
[quoted text clipped - 4 lines]
> how can i bring the main form into the front,
> when its modeless dialog is selected into focus?