إظهار مربع رسالة من فئة في C #؟
-
23-08-2019 - |
سؤال
كيف تحصل على فئة للتفاعل مع النموذج لإظهار مربع رسالة؟
المحلول
using System.Windows.Forms;
...
MessageBox.Show("Hello World!");
نصائح أخرى
System.Windows.MessageBox.Show("Hello world"); //WPF
System.Windows.Forms.MessageBox.Show("Hello world"); //WinForms
جرب هذا:
System.Windows.Forms.MessageBox.Show("Here's a message!");
using System.Windows.Forms;
public class message
{
static void Main()
{
MessageBox.Show("Hello World!");
}
}
لا تنتمي إلى StackOverflow