首页 > Windows开发 > 详细

C# 桌面右下角显示窗体

时间:2020-02-04 15:14:26      阅读:50      评论:0      收藏:0      [点我收藏+]

 

        public Form1()
        {
            InitializeComponent();
            //桌面窗口区宽减自身宽,高减自身高
            int x = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Size.Width - this.Size.Width;         
            int y = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Size.Height - this.Size.Height;  
            Point p = new Point(x, y);
            this.PointToScreen(p);  //区域坐标变换成屏幕坐标表示
            this.Location = p;      //设置窗体位置
        }

 

C# 桌面右下角显示窗体

原文:https://www.cnblogs.com/52vsto/p/12259231.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!