Can you run a VB application in full-screen?

ぐ巨炮叔叔 提交于 2019-12-23 10:23:55

问题


I just want to ask: How do you get an application, using Microsoft Visual Basic 2010 express, to run in full screen mode. You know what I mean, like a game would but an application.

Is it possible? If not, tell me how and what I need to do it. Thanks.


回答1:


In your Form_load add the following two lines:

Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None
Me.WindowState = FormWindowState.Maximized

Obviously, you can place the code elsewhere than in form_load - and depending on your list of includes you may need more or less prepending.




回答2:


set the WindowState property to Maximized




回答3:


The FormBorderStyle line is essential to show as full screen, so the top bar controls are not visible.

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None
        Me.WindowState = FormWindowState.Maximized
End Sub


来源:https://stackoverflow.com/questions/8657991/can-you-run-a-vb-application-in-full-screen

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!