作者Eric30 (eric)
看板C_Sharp
标题Re: [问题] 视窗位置
时间Sat Apr 7 20:21:16 2007
※ 引述《huggie (huggie)》之铭言:
: 我想要让 form 位置开在萤幕右下角
: 请问这是要得到萤幕位置吗? 还是要怎麽做?
: 那要怎麽设定呢?
Rectangle rect = Screen.GetWorkingArea(this);
this.Top = rect.Bottom - this.Height;
this.Left = rect.Right - this.Width;
this.StartPosition = FormStartPosition.Manual;
--
Try it :)
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 61.216.36.132