码迷,mamicode.com
首页 > Windows程序 > 详细

C#设置窗口在右下角显示

时间:2015-01-20 15:14:19      阅读:195      评论:0      收藏:0      [点我收藏+]

标签:

            int x = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Size.Width - this.Width;
            int y = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Size.Height - this.Height;
            this.SetDesktopLocation(x, y);

C#设置窗口在右下角显示

标签:

原文地址:http://www.cnblogs.com/donsy/p/4236068.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!