怎么让C#程序出现在桌面右上角 怎么让C#程序出现在桌面右上角Location 怎么去定位,精确点是多少?比如? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 this.StartPosition = FormStartPosition.Manual; this.Location = new Point(Screen.PrimaryScreen.WorkingArea.Width - this.Width,0 );//Screen.PrimaryScreen.WorkingArea.Height-this.Height Rectangle ScreenArea = System.Windows.Forms.Screen.GetWorkingArea(this);//int width1 = ScreenArea.Width; //屏幕宽度 int height1 = ScreenArea.Height; //屏高度 private void Frm_Load(object sender, EventArgs e) { this.Location = new Point(Screen.PrimaryScreen.Bounds.Width - 2, Screen.PrimaryScreen.Bounds.Height-100); } 特此发布学习心得////左上角 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); 请大家回答详细点!!!! 一个服务器同时往近500台电脑发送同样的数据,有什么快的方法 我做了一个登陆窗体,退出时弹出第二个窗体不解。 WinForm隐藏与关闭的问题 DataTable快速导出 怎样才能让DataGrid控件不显示每行的+号? 同一个WinService部署多次的问题 如何对一个矩形进行旋转操作? [求助]请“思归”等星级老大进来~~~~~[UP有分] 关于listview的问题 关于双击启动程序的问题 推荐一款分析单元测试代码覆盖率的软件?
this.StartPosition = FormStartPosition.Manual;
this.Location = new Point(Screen.PrimaryScreen.WorkingArea.Width - this.Width,0 );//Screen.PrimaryScreen.WorkingArea.Height-this.Height
Rectangle ScreenArea = System.Windows.Forms.Screen.GetWorkingArea(this);//
int width1 = ScreenArea.Width; //屏幕宽度
int height1 = ScreenArea.Height; //屏高度
private void Frm_Load(object sender, EventArgs e)
{
this.Location = new Point(Screen.PrimaryScreen.Bounds.Width - 2, Screen.PrimaryScreen.Bounds.Height-100);
}
//左上角
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);