关于右下角弹出框

来源:互联网 发布:摄像头录制软件免费版 编辑:程序博客网 时间:2024/05/18 20:32

 int ScreenWidth = Screen.PrimaryScreen.WorkingArea.Width;
 int ScreenHeight = Screen.PrimaryScreen.WorkingArea.Height;
  //计算窗体显示的坐标值,可以根据需要微调几个像素
  int x = ScreenWidth - this.Width - 5;
 int y = ScreenHeight - this.Height - 3;

将这几行代码放在需要弹出窗体的加载事件中,

可以实现右下角的窗体弹出效果

原创粉丝点击