Meghanad:
One correction to my last response. I stated that the solution provided
would work if you opened form B as a modal dialog (implying that the
solution wouldn't work if you opened form B as a modeless dialog). That
is not true. If you choose to open form B as a modeless dialog, then
simply replace the "btnOpen_Click" method from my previous post with the
following:
private void btnOpen_Click(object sender, System.EventArgs e)
{
FormB child = new FormB();
child.Owner = this;
child.Show();
}
Cheers.
- Roger Nedel
Nedel Software Solutions
rnedel@n...