Make sure you set the dialog owner property. This tells WinForms / Win32 that the window will be disabled when a new window becomes modal. Do something like this:
secondDialog.Owner = firstDialog;
secondDialog.ShowDialog()
Or try calling secondDialog.ShowDialog(firstDialog), which should establish a chain of owners for you.
source
share