Which is the caption part for the following Visual Basic command? [code] MessageBox.Show("Delete this record?","Payroll",MessageBoxButtons.YesNo

Which is the caption part for the following Visual Basic command?
Code:
MessageBox.Show("Delete this record?","Payroll",MessageBoxButtons.YesNo,
MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button2).
A. “Delete this record?”
B. “Payroll”
C. MessageBoxButtons.YesNo
D. MessageBoxIcon.Exclamation
 
Answer: B
Explanation: The syntax of the MessageBox.Show is-
Code:
MessageBox.Show (text, caption, buttons, icon, [defaultButton])
The caption is given as the second component in the syntax. In the above statement, the second component is the “payroll”, thus it is the caption.
 

Tìm kiếm

Back
Top