Wonderful. NET Web program using Windows pop-up box

Source: Internet
Author: User
Tags client
web|window| program once when I was doing a project, I suddenly found an interesting call, in a. NET Web program, you can use the System pop-up box in the window package,
The runtime can be a pop-up balloon on the server, if the server clicked on the pop-up button, the client IE can continue to run, otherwise it looks like the server's code has an infinite loop, always running the same.
Examples are as follows:


if (MessageBox.Show) (ok to delete?) "," prompted, Messageboxbuttons.okcancel, Messageboxicon.exclamation,messageboxdefaultbutton.button1, messageboxoptions.servicenotification) ==dialogresult.ok)

{//do some useful things}




Parameter messageboxoptions uses another parameter and the servicenotification is not very different and has not yet found its difference

Using this method, you can send a visual notification to the server side by the client, but you cannot use Windows controls. This usage has a certain use, but it is very narrow.
As for where it will be useful, you have more experience!!
But I feel very wonderful!!



Related Article

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.