Fake Dialogs using ShowDialog(OwnerForm Form)

  • Thread starter Thread starter scott blood
  • Start date Start date
S

scott blood

Hello,

We currently have an application that has a lot of screens that allow users
to add new data to the system. These forms are currently accessed via a
browse form, such as the employee's browse form. The user would access the
Add Form by clicking on the Add Employee Button.

Unfortunatly when you use MyForm.ShowDialog(this), the entire application is
locked out, which is the default and accepted behaviour of Windows Forms.

However, i need the ability to only disable access to the browse form that
has called the Add screen and ensure the rest of the application stays
responsive.

I have tried quite a few ways of doing this, but none of them are effective
enough. Does anyone know of a good way to do this.

Regards
Scott Blood
Senior Developer
www.betfred.com
 
Guys.

Thanks for your repsonse it is much appreciated, however this is not a
suitable method for us because we need the form to act as though it is modal
only affecting the form that initiated it.

Simply using show and setting enabled to false of the calling form does not
produce the desired effect.
 
Scott,

could you explain the difference between "we need the form to act as though
it is modal only affecting the form that initiated it" and "using show and
setting enabled to false of the calling form does not produce the desired
effect"?
 
Scott,
Thanks for your repsonse it is much appreciated, however this is not a
suitable method for us because we need the form to act as though it is modal
only affecting the form that initiated it.

Simply using show and setting enabled to false of the calling form does not
produce the desired effect.

Could you not fire up the new form in or from a new thread? Just
thinking on my feet here. I guess you could wrap it up into a function
or something.

Richard
 

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