M
Michael Wong
How can I detect if a form has a dialog showing?
For example, in form1, I have code to show a dialog:
private void FormProduct_Closing(object sender, CancelEventArgs e)
{
// ...
MessageBox.Show(...);
// ...
}
which is not closed yet. And in another thread, I would like to know
whether form1 is available or waiting a dialog to close down (can be any
dialog, like a messageBox,...)
For example, in form1, I have code to show a dialog:
private void FormProduct_Closing(object sender, CancelEventArgs e)
{
// ...
MessageBox.Show(...);
// ...
}
which is not closed yet. And in another thread, I would like to know
whether form1 is available or waiting a dialog to close down (can be any
dialog, like a messageBox,...)