I have a MainForm form with several properties / methods that are accessed from another thread.
At some point, I can open the AuxForm form with ShowDialog (), and then, while the modal form is open, another thread is still modifying the MainForm properties. All this is necessary.
In one of the methods available from another thread, I need to execute some code, but only if the modal AuxForm is not open. Is there a way to verify this (using the .NET WF Form properties) or do I need to use a flag variable?
NOTE. None of these properties / methods modify the controls (therefore Invoke is not required).
source
share