The difference between ShowModal and Show

Source: Internet
Author: User

Show:

Use Show to set the form Visible property to True and to bring the form to the front of other forms on the screen.

ShowModal:
Use the showmodal to show a form as a modal form. A modal form is one where the application can continue to run until the form is closed. Thus, ShowModal does not return until the form closes. When the form is closes, it returns the value of the Modalresult property.

the translation into Chinese probably means:
Show just lets a window show, for example in Form1 form2->show (), then you can continue to click on Form1 after Form2 display.
The ShowModal is to display the window as a modal window, which means that the program can only continue to execute the following statement after the window is closed, such as Form1 form2->showmodal (), so Form1 is not available until Form2 is closed.

The difference between ShowModal and Show

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.