MessageBoxButtons.YesNo
MessageBoxIcon.Exclamation
Answer is Right!
Answer is Wrong!
The correct answer is A. “Delete this record?”
The caption is the text that appears in the title bar of the message box. The other options are the button type, icon, and default button.
- MessageBoxButtons.YesNo: The message box will have two buttons, “Yes” and “No”.
- MessageBoxIcon.Exclamation: The message box will have an exclamation point icon.
- MessageBoxDefaultButton.Button2: The “No” button will be the default button.