System.InvalidOperationException. Use Form.ShowDialog Instea

Posted by Admin on 30-Jul-2010 10:51

Hello,
I have another problem.
I have an MDI Form (FMenu.cls), which will dynamically calling several options menus.
If I open the form as you say here (showModalDialog), I can not press different menu options until you close the window, and I need to have more of an open form

All Replies

Posted by Admin on 30-Jul-2010 11:20

If I open the form as you say here (showModalDialog), I can not press different menu options until you close the window, and I need to have more of an open form

If you do not want modality, use the forms Show() method instead of ShowDialog().

Show() does not require the WAIT-FOR.

Posted by Admin on 30-Jul-2010 11:50

But, I want that when show the form stop the code and dont run since close the windows.

For Example:

Form:Show().

v-error = No.

Until they do not want to close the form assigned to the variable error v-no value.
With the show continued to run it all, that is, and then displays the value assigned to the variable

Yes, my english is very bad!!!

Posted by Admin on 30-Jul-2010 11:55

That is not possible!

You need to move code that should execute when the Form is closed to the FormClosing or FormClosed event handler.

Posted by Admin on 30-Jul-2010 11:57

Ok, that's what imagine

This thread is closed