可能重复: 使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更多推荐
全屏运行,没有开始菜单
发布评论