广场的WinForm在右下广场、WinForm

2023-09-04 08:42:11 作者:风吹屁股屎飘扬/

我如何可以把一个形式在屏幕的右下角,当它加载使用C#?

How can I place a form at the bottom-right of the screen when it loads using C#?

推荐答案

试一下就行

Rectangle workingArea = Screen.GetWorkingArea(this);
this.Location = new Point(workingArea.Right - Size.Width, 
                          workingArea.Bottom - Size.Height);

希望它很适合你。

Hope it works well for you.

 
精彩推荐
图片推荐