What happens after a form that has been displayed with the ShowDialog method is closed by the user?

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter6: Sub And Function Procedures
Section: Chapter Questions
Problem 3MQ2
icon
Related questions
Question

What happens after a form that has been displayed with the ShowDialog method
is closed by the user?

Expert Solution
Step 1

ANS: -

The moment the Close button of the form is clicked it does the following things: -

  • It makes the form hidden.
  • The form result is represented by the DialogResult property.
  • DialogResult.Cancel is set to the property named DialogResult.
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Mouse Control
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning