窗口起始位置为屏幕中央
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
获取鼠标触发事件光标位置
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
Location = new Point(Cursor.Position.X, Cursor.Position.Y)
窗口起始位置为屏幕中央
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
获取鼠标触发事件光标位置
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
Location = new Point(Cursor.Position.X, Cursor.Position.Y)