弹出的窗口永远在屏幕右下角(WINFORM)

 int x=0;

int y=0;

Form2 cp=new Form2();          

  if (Screen.AllScreens.Length > 0)
            {
                x = Screen.AllScreens[0].WorkingArea.Width - cp.Width;
                y = Screen.AllScreens[0].WorkingArea.Height - cp.Height;
            }

            Point point = new Point(x, y);
            cp.Location = point;
            cp.Opacity =0;
            cp.Show(); 

posted on 2008-05-15 16:37  leanco  阅读(483)  评论(0)    收藏  举报

导航