For other situations, the MessageDialog class is more appropriate. The MessageBox method is recommended for simple informational messages only. Instead use the Debugger, System.DebugLog or your own logging mechanism.Ī message can be presented to the user with either the MessageBox method or the MessageDialog class. The displaying of the Message Box will alter event order and may give unexpected results. You should avoid using MessageBox for displaying debugging messages. Reporting bugs and making feature requests.