我如何编写全屏菜单项的代码 [英] how do i write the code of full screen menu item

查看:100
本文介绍了我如何编写全屏菜单项的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请您在窗口菜单项"中向我提供全屏代码.如何使用C#来实现.

please can you provide me with the code of full screen in Window Menu Item.How to implement that using C#.

推荐答案

最大化而不是最大化)还是全屏显示(如在任务栏上一样)?

如果是第一个,则将执行此操作
Do you mean fill the screen (maximize without maximizing) or full screen as in over the taskbar as well?

If the first then this will do it
Bounds = Screen.GetWorkingArea(this);


如果是第二个,则此


If the second then this

FormBorderStyle = FormBorderStyle.None;
Bounds = Screen.GetBounds(this);


这篇关于我如何编写全屏菜单项的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆