从显示在C#中类的消息框? [英] Show a message box from a class in c#?
本文介绍了从显示在C#中类的消息框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何让一个类与表单交互显示一个消息框?
解决方案
使用System.Windows.Forms的;
...
MessageBox.Show(的Hello World!);
How do you get a class to interact with the form to show a message box?
解决方案
using System.Windows.Forms;
...
MessageBox.Show("Hello World!");
这篇关于从显示在C#中类的消息框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文