全屏运行,没有开始菜单

编程入门 行业动态 更新时间:2024-10-11 21:28:02
本文介绍了全屏运行,没有开始菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

可能重复: 使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

更多推荐

全屏运行,没有开始菜单

本文发布于:2023-11-08 06:28:34,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1568594.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:全屏   开始菜单

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!