试试
[DllImport("user32", EntryPoint="MessageBox")] 
public static extern int MessageBoxA(int hwnd, string lpText, string lpCaption, int wType)