Which of the method is used to display the form as modal
-
Showdialog( )
-
Activate ( )
-
Loaddialog()
-
Show( )
Reveal answer
Fill a bubble to check yourself
A
Correct answer
Explanation
ShowDialog() displays a form as a modal dialog, blocking interaction with the parent form until the dialog is closed. The Show() method (D) displays a form as modeless. Activate() (B) just brings focus to an already shown form, and Loaddialog() (C) is not a standard method.
AI explanation
In .NET Windows Forms, ShowDialog() displays a form as a modal window — it blocks interaction with other windows in the application until the dialog is closed, and returns a DialogResult. Show() instead displays the form modelessly (non-blocking). Activate() just brings an already-open form to the foreground/focus, and Loaddialog() is not a real Windows Forms method.