Board index » Visual Studio » ShowDialog trooble

ShowDialog trooble

Visual Studio229
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


-
 

Re:ShowDialog trooble

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





"Jean-Francois Cantin" <jeanfrancois.cantin@expertisa.com>wrote in message

Quote
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









-