Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run in full screen with no start menu [duplicate]

Possible Duplicate:
Making Winforms Fullscreen

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"

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

like image 893
KangarooRider Avatar asked Dec 19 '25 01:12

KangarooRider


1 Answers

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
like image 134
NYCdotNet Avatar answered Dec 21 '25 21:12

NYCdotNet



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!