简体   繁体   English

如何制作一个不会停止程序执行的弹出对话框?

[英]How to make a pop-up dialog that does not stop the program execution?

I am doing automation testing and while writing the test cases I don't want to go looking at the logs after the testing is done, because I sit in front of my PC when the automation tests are run. 我正在执行自动化测试,并且在编写测试用例时,我不想在测试完成后去查看日志,因为运行自动化测试时,我坐在电脑前。

Is there any way that I can make pop up dialogs? 有什么办法可以使我弹出对话框?

Like if a button is clicked, the pop up dialog should appear saying the button is clicked, but the program execution shouldn't be stopped. 就像单击按钮一样,应该显示弹出对话框,说明单击了按钮,但不应停止程序执行。 I tried with messagebox.show but the problem is it stops execution of the program. 我尝试使用messagebox.show但问题是它停止了程序的执行。

Is there anyway to do this without stopping the execution of the program? 无论如何,有没有停止程序执行的操作?

Simply use modeless dialogs. 只需使用无模式对话框。 See here . 这里

in essence: Use form.Show() instead of form.ShowDialog() . 本质上:使用form.Show()代替form.ShowDialog()

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM