using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms; using System.Runtime.InteropServices;
namespace TempForm
{
/// <summary>
/// Description of MainForm.
/// </summary>
public partial class MainForm : Form
{
[DllImport("user32")]
public static extern int MessageBox(int hWnd, string pText, String pCaption, int uType);
public MainForm()
{
//
// The InitializeComponent() call is required for Windows Forms designer support.
//
InitializeComponent();
//
// TODO: Add constructor code after the InitializeComponent() call.
//
string myTxt = "Привет!";
string myCaption = "Сообщение";
MessageBox(0, myTxt, myCaption,0);
}
}
}