Posted By

indra on 06/03/11


Tagged

Winform


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

thewickedchemist


Fullscreen in VB.Net


 / Published in: VB.NET
 

  1. Public Sub ShowFullscreen()
  2. Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None
  3. Me.WindowState = System.Windows.Forms.FormWindowState.Maximized
  4. Me.TopMost = True
  5. End Sub

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: raine on December 30, 2015
Public Sub ShowFullscreen()
    ' Toggle between Fullscreen and normal form

    If Me.WindowState = System.Windows.Forms.FormWindowState.Maximized Then
        Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable
        Me.WindowState = System.Windows.Forms.FormWindowState.Normal
    Else
        Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None
        Me.WindowState = System.Windows.Forms.FormWindowState.Maximized
    End If

    Me.TopMost = True
End Sub

You need to login to post a comment.