ShowDialog trooble

  • Thread starter Thread starter Jean-Francois Cantin
  • Start date Start date
J

Jean-Francois Cantin

Here's my problem :

I got a MDI form from where we show a first form, called frmA. This frmA
shows another form, called frmB, ( frmB.showDialog ).
frmB isn't a MDI child, unlike frmA.

I'm able to access to all frmA controls when frmB is shown. How is it
possible ? I thought ShowDialog statement would block this possibility.
I want frmB to be the "top most" form in my app.

Thank's,
Jean-François
 
My guess would be that you're dialog has no parent window. You need to
supply frmA as an argument to the ShowDialog method like so

frmB.ShowDialog(frmA)

You won't be able to access frmA until you dismiss frmB....
 
Back
Top