CE下面貌似沒有PC上的Startposition屬性,但是可以通過窗口的Location來重新設置窗口位置。
如下
public MyForm()
{
InitializeComponent();
this.Location = new Point((Screen.PrimaryScreen.Bounds.Width - this.Width) / 2, (Screen.PrimaryScreen.Bounds.Height - this.Height) / 2);
}
CE下面貌似沒有PC上的Startposition屬性,但是可以通過窗口的Location來重新設置窗口位置。
如下
public MyForm()
{
InitializeComponent();
this.Location = new Point((Screen.PrimaryScreen.Bounds.Width - this.Width) / 2, (Screen.PrimaryScreen.Bounds.Height - this.Height) / 2);
}
this.richTextBox2.SelectionStart=this.richTextBox2.Text.Length; this.richTextBox2.ScrollToCaret();
public partial class MyMessageBox : Window { public static void Show(string strErrorInfo) {