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:
Verified
Q64: The radius of the circle drawn by
Q65: The center of the circle drawn by
Q66: The statement gr.FillRectangle(Brushes.Red, 10, 20, 30, 40)
Q67: The_ is used to specify the startup
Q68: The statements gr.DrawLine(Pens.Red, 10, 20, 30, 40)
Q70: What is the effect of the statement
Q71: The statements gr.DrawLine(Pens.Red, 0, 0, 30, 40)
Q72: The statements gr.DrawLine(Pens.Red, 0, 0, 30, 40)
Q73: A modal form cannot lose the focus
Q74: The_ method is used to display a
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents