Re: [問題] 視窗位置
※ 引述《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
討論串 (同標題文章)
C_Sharp 近期熱門文章
PTT數位生活區 即時熱門文章