Category Archives: MessageBox

Set the MessageBox default button in C#

The fifth parameter to MessageBox.Show indicates the default button. The following code shows how the program displays a MessageBox with the second button as the default so it is initially selected when the message box appears. // Display a message … Continue reading

Posted in dialogs, MessageBox | Tagged , , , , , , , , , | Leave a comment

A quick note on error messages

I went to a local museum yesterday and when the attendant scanned by membership card his computer said: Object not set to a reference of an object. Because we’re programmers, you and I know what that means (more or less), … Continue reading

Posted in MessageBox, miscellany | 1 Comment