Which of the following is the caption part for the following Visual Basic command? MessageBox.Show(“Delete Visual Basic?”,”VB.Net”,MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button2).

MessageBoxButtons.YesNo
MessageBoxIcon.Exclamation

The correct answer is D. “Delete Visual Basic?”

The caption is the text that appears in the title bar of the message box. In this case, the caption is “Delete Visual Basic?”.

The other options are:

  • A. MessageBoxButtons.YesNo: This is the type of buttons that will appear in the message box. In this case, the buttons are “Yes” and “No”.
  • B. MessageBoxIcon.Exclamation: This is the icon that will appear in the message box. In this case, the icon is an exclamation point.
  • C. “VB.Net”: This is the text that will appear in the message box. In this case, the text is “VB.Net”.

I hope this helps!

Exit mobile version