Solved

A Program Contains Two Forms with the Names Form1 and Form2

Question 69

Multiple Choice

A program contains two forms with the names Form1 and Form2. Form1 contains a button called btnDisplay, and the following code is placed inside btnDisplay's Click event procedure.
Form2.ShowDialog
MessageBox.Show("Hello")
Which of the following statements is true after the user clicks on btnDisplay at run time?


A) Form2 appears behind Form1 and the user will be able to set the focus to either form.
B) Form2 appears in front of Form1 and the user will only be able to set the focus to Form2.
C) A message box displaying the text "Hello" appears in front of Form2 and Form1.
D) A message box displaying the text "Hello" appears behind Form2 and Form1.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents