现在的位置: 首页 > 综合 > 正文

winform 窗体定位

2013年10月28日 ⁄ 综合 ⁄ 共 228字 ⁄ 字号 评论关闭

 在开发的过程中也许大家会遇到窗体定位 这是很麻烦得事。

不过我们可以用 int width= Screen.PrimaryScreen.Bounds.Width;
            int height = Screen.PrimaryScreen.Bounds.Height;
            this.Location = new System.Drawing.Point(width-this.Width,height- this.Height);

 

这几句就可以搞定

抱歉!评论已关闭.