- .NET.
() , , , .
Windows (API), .
, ( Enabled = false , Enabled = true ).
( NeedInteraction), , , - , .
void ShowDialog()
{
var dialog = new MyModalForm();
dialog.NeedInteraction += (sender, eventArgs) =>
{
dialog.Hide();
Enabled = true;
Enabled = false;
dialog.Show();
}
Enabled = false;
dialog.ShowDialog();
Enabled = true;
}
This may not be a clean solution (since you do not need to hide the modal dialog), but it works, at least for my situation.
source
share