全屏运行,没有开始菜单 [英] Run in full screen with no start menu

查看:82
本文介绍了全屏运行,没有开始菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
使Winforms全屏显示

Possible Duplicate:
Making Winforms Fullscreen

我正在制作要全屏运行的VB表单,如涵盖开始菜单所示 和任务栏.现在我正在使用

I am making a VB Form that i want to run in full screen, as in covering the start menu and task bar. right now i am using

    Me.Size = SystemInformation.PrimaryMonitorSize
    Me.WindowState = 2
    Me.Location = New Point(0, 0)
    Me.TopMost = True
    Me.FormBorderStyle = 0

,但仍然显示开始菜单.我认为这是因为窗口只是最大化而不是真正处于全屏"状态

but the start menu still shows. I am assuming this is because the window is just maximized and not really in "full screen"

有什么方法可以覆盖vb中的开始菜单,以使程序全屏运行?

is there any way i can cover the start menu in vb to make the program run in full screen?

推荐答案

此处似乎有一些副作用.如果您只是重新排列行,它应该可以正常工作.实际上,似乎并不需要明确地要求将WindowState设置为最大化或启用始终位于最前面".

There appear to be some side-effects going on here. If you just reorder the lines, it should work fine. In fact, setting the WindowState to maximized or enabling "always on top" do not appear to be explicitly required to achieve this effect.

Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None
Me.Location = New Point(0, 0)
Me.Size = SystemInformation.PrimaryMonitorSize
'Me.WindowState = 2
'Me.TopMost = True

这篇关于全屏运行,没有开始菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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