This article is a mirror article of machine translation, please click here to jump to the original article.

View: 27736|Reply: 5

[WinForm] [Reprint]. net/c# MessageBox pop-up pop-up countdown is automatically closed

[Copy link]
Posted on 5/29/2018 5:21:15 PM | | | |


I wrote a software that shuts down regularly before, and I want to remind you of the pop-up countdown
I searched the Internet and couldn't find anything related to the countdown of MessageBox
And I don't want to write a separate window myself, like using the original MessageBox
I had no choice but to think about it myself
In fact, the reason is also very simple
It is about the processing of window information
I have always wanted to encapsulate it, but the technology is not up to standard, and it cannot be realized
Now send it out and learn with everyone
Present the source code as inappropriate, please criticize and correct it


Source:







Previous:(Reprint) webbrowser supports IE8/IE9/IE10/HTML5 (webbrowser defaults to IE7 mode....
Next:Monitor AppDomains
 Landlord| Posted on 5/29/2018 5:23:56 PM |


Call:





Parameter value description:

vbOKOnly 0 only shows the OK button.
VbOKCancel 1 displays the OK and Cancel buttons.
VbAbortRetryIgnore 2 displays the Abort, Retry, and Ignore buttons.
VbYesNoCancel 3 displays the Yes, No, and Cancel buttons.
VbYesNo 4 displays the Yes and No buttons.
VbRetryCancel 5 displays the Retry and Cancel buttons.
VbCritical 16 displays the Critical Message icon.
VbQuestion 32 displays the Warning Query icon.
VbExclamation 48 displays a Warning Message icon.
VbInformation 64 displays the Information Message icon.
vbDefaultButton1 0 The first button is the default value.
vbDefaultButton2 256 The second button is the default value.
vbDefaultButton3 512 The third button is the default value.
vbDefaultButton4 768 The fourth button is the default value.
1 OK + Cancel
2 Terminate + Retry + Ignore
3 Yes + No + Cancel
4 Yes + No
5 Retry + Cancel
6 OK
16 Red X+ OK
17 Red X + OK + Cancel
18 Red X + Terminate + Retry + Ignore
19 Red X + Yes + No + Cancel
20 Red X + Yes + No
21 Red X + Retry + Cancel
32 Blue question mark + OK
33 Blue question mark + OK + cancel
34 Blue question mark + terminate + retry + ignore
35 Blue question mark + yes + no + cancel
36 Blue question mark + yes + no
37 Blue question mark + retry + cancel
48 Yellow exclamation mark + OK
49 Yellow exclamation mark + OK + cancel
50 Yellow exclamation mark + terminate + retry + ignore
51 Yellow exclamation mark + yes + no + cancel
52 Yellow exclamation mark + yes + no
53 Yellow exclamation mark + retry + cancel
64 Blue exclamation mark + OK
65 Blue exclamation mark + OK + cancel
66 Blue exclamation mark + termination + retry + ignore
67 Blue exclamation mark + yes + no + cancel
68 Blue exclamation mark + yes + no
69 Blue exclamation mark + retry + cancel

Posted on 1/4/2022 8:06:10 PM |
Awesome, awesome, awesome
Posted on 1/12/2022 11:23:37 AM |
Look, learn to learn
Posted on 9/24/2022 2:06:05 PM |
Prompt:Authors are banned or removed content is automatically blocked
Posted on 4/12/2023 1:33:32 PM |
It looks very good. Come and learn
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com