Form 如何启动的时候停放在右下角 我觉得Form 如果启动的时候,先在右下角,比较特别,但是不知道在Load 事件里面 如何写,高人指点一下吧. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 f.StartPosition = FormStartPosition.Manual;f.Location API, MoveWindow移动位置 f.StartPosition = FormStartPosition.Manual;然后仔细调整窗口Location属性的x,y值即可。 粘贴这个到你窗体的类中即可。protected override void OnLoad(EventArgs e){ base.OnLoad(e); this.StartPosition = FormStartPosition.Manual; this.Location = new Point(Screen.PrimaryScreen.WorkingArea.Width - this.Width, Screen.PrimaryScreen.WorkingArea.Height - this.Height);} this.StartPosition = this.FormStartPosition.Manual;//设置窗体的初始位置为手动的this.Location = new Point(Screen.PrimaryScreen.WorkingArea.Width - this.Width, Screen.PrimaryScreen.WorkingArea.Height - this.Height);//设置窗体的位置为屏幕的大小-窗体的大小就是屏幕的又下角 用系统托盘NotifyIcon控件 可以实现,启动窗体的时候先隐藏启动窗体。 C# 多线程排队 winform求助? 声音通道是个什么东西? 新手请教:protected 正则匹配HTML IPEndPoint,如何对虚拟主机取得节点? @@@@@@@@@@疯掉了,其实是一个很简单的问题,就是单击treeview做出响应的问题,达人请进,解决了立刻结贴 大家有没有碰到Oracle clob类型字段的问题· 请大家推荐几个C#术资源站点,谢谢! 发信息到QQ邮箱,不报错也发送不成功,来个大神帮帮忙 winform 把控件放进一个数组 或list里 点击提交按钮怎么出现提示声音?
f.Location
API, MoveWindow移动位置
然后仔细调整窗口Location属性的x,y值即可。
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
this.StartPosition = FormStartPosition.Manual;
this.Location = new Point(Screen.PrimaryScreen.WorkingArea.Width - this.Width, Screen.PrimaryScreen.WorkingArea.Height - this.Height);
}
this.Location = new Point(Screen.PrimaryScreen.WorkingArea.Width - this.Width, Screen.PrimaryScreen.WorkingArea.Height - this.Height);//设置窗体的位置为屏幕的大小-窗体的大小就是屏幕的又下角
启动窗体的时候先隐藏启动窗体。