I have an MDI application. When I show a message box using MessageBox.Show (), the entire application disappears behind all my open windows when I fire the message box.
The code does nothing special. In fact, here is the line that calls the message box from the MDI child form:
MessageBox.Show(String.Format("{0} saved successfully.", Me.BusinessUnitTypeName), "Save Successful", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly)
Me.BusinessUnitTypeName () is a read only get property that returns a string, depending on the value of the member variable. There are no side effects in this property.
Any ideas?
source
share