窗体全屏显示问题。

fts115 2010-01-20 10:35:57
我想让窗体全屏显示。就像最大化那种。不要Windowstate设置最大化。根据分辨率不同都可以显示全屏那样。我如何设置?
...全文
85 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
spmzfz 2010-01-20
  • 打赏
  • 举报
回复
呵呵,楼主你怎么把分全给我了呀,其实2楼的回答很好,我都向他学习了。
Taiyangchen 2010-01-20
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 qiufengilove 的回复:]
this.SetVisibleCore(false);
this.FormBorderStyle = FormBorderStyle.None;
this.WindowState = FormWindowState.Maximized;
this.SetVisibleCore(true);
即可实现
简单快捷
[/Quote]

right
hycaogenjun 2010-01-20
  • 打赏
  • 举报
回复
HAO
qiufengilove 2010-01-20
  • 打赏
  • 举报
回复
this.SetVisibleCore(false);
this.FormBorderStyle = FormBorderStyle.None;
this.WindowState = FormWindowState.Maximized;
this.SetVisibleCore(true);
即可实现
简单快捷
spmzfz 2010-01-20
  • 打赏
  • 举报
回复
Rectangle R = System.Windows.Forms.Screen.PrimaryScreen.WorkingArea;
this.Location = new Point(0, 0);
this.Size = new Size(R.Width, R.Height);

111,120

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • AIGC Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧