本文介绍了广场的WinForm在右下的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何可以把一个形式在屏幕的右下角,当它加载使用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.
这篇关于广场的WinForm在右下的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!