how to make my form Full Screen

new2this

Member
Joined
Nov 20, 2009
Messages
15
Location
Durban, KwaZulu-Natal, South Africa
Programming Experience
Beginner
Hi Guys

i need your help to make my form full screen. i need the screen to be on top of the task bar and on top over any other application that is running behind it.

most of the code i have found so far is in c# and i tried converting but i cant seem to get it to work properly

any help would be appreciated

thanks
 
VB.NET:
        'Example of hight and with, just change as needed.
        Me.Width = My.Computer.Screen.WorkingArea.Width
        Me.Height = Screen.PrimaryScreen.Bounds.Height

        'Centers form to screen.
        Me.CenterToScreen()

        'Sets form to ontop of all other forms and Desktop!
        Me.TopMost = True

        'Sets Form state to minimize or maximize.
        Me.WindowState = FormWindowState.Maximized
        'Me.WindowState = FormWindowState.Minimized
        'Me.WindowState = FormWindowState.Normal

Hope this helps, this is a more simplified way to do it :)
 
i need your help to make my form full screen. i need the screen to be on top of the task bar and on top over any other application that is running behind it.
VB.NET:
Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None
Me.WindowState = FormWindowState.Maximized
Me.TopMost = True
First line allow the form to cover task bar when maximized, which is set in second line, third line to overlap other non-topmost forms.
 
Back
Top