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....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top