怎么让C#程序出现在桌面右上角
Location 怎么去定位,精确点是多少?比如?

解决方案 »

  1.   


    this.StartPosition = FormStartPosition.Manual;
                this.Location = new Point(Screen.PrimaryScreen.WorkingArea.Width - this.Width,0 );//Screen.PrimaryScreen.WorkingArea.Height-this.Height
      

  2.   


    Rectangle ScreenArea = System.Windows.Forms.Screen.GetWorkingArea(this);//
    int width1 = ScreenArea.Width; //屏幕宽度 
    int height1 = ScreenArea.Height; //屏高度
      

  3.   


         private void Frm_Load(object sender, EventArgs e)
            {
         this.Location = new Point(Screen.PrimaryScreen.Bounds.Width - 2, Screen.PrimaryScreen.Bounds.Height-100);
             }
      

  4.   

    特此发布学习心得//
    //左上角
       this.Location = new Point(0, 0);
    //右上角
                this.Location = new Point(Screen.PrimaryScreen.WorkingArea.Width - this.Width, 0);
    //右下角
                this.Location = new Point(Screen.PrimaryScreen.WorkingArea.Width - this.Width, Screen.PrimaryScreen.WorkingArea.Height - this.Height);
    //做下角
                this.Location = new Point(0, Screen.PrimaryScreen.WorkingArea.Height - this.Height);