Form load

hadinatayp

Well-known member
Joined
Feb 8, 2006
Messages
95
Programming Experience
Beginner
How to make our form load on fullscreen mode (without title bar and menu bar), or easier to say, like while you're playing a PC game (the game runs in fullscreen mode display only the game main body without showing the title bar), or other way to say, while you're watching a DVD on your PC (in the fullscreen mode)
thx.
 
Create a form and set it's
- .ControlBox to False
- .FormBorderStyle to FixedSingle
- .Text to "" (no title)
- .WindowState to Maximized
 
when it is in fullscreen mode, on the taskbar it state nothing (just an empty box) because we set the text to nothing, can we set the text to something and offcourse it won't shows up while in fullscreen mode, but it only shows up on taskbar
 
Last edited:
i'm using the form deactivate and activated.

in the deactivate method i use me.text="Hello", and in the activated method i use me.text=""

when i run the program and press Alt+Tab to move to another program, the code in the deactive method works, but when i return to the program using the Alt+Tab, my program going crazy, it loops forever (it paints the form and then repaint it, and paint it again, and......so on)

how can i solve this problem?
 
try this instead, application title (me.Text) can be set.
VB.NET:
Expand Collapse Copy
Sub fullscreen(ByVal fs As Boolean)
  Me.MaximizeBox = Not fs
  Me.MinimizeBox = Not fs
  If fs = True Then
    Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None
    Me.WindowState = System.Windows.Forms.FormWindowState.Maximized
  Else
    Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable
    Me.WindowState = System.Windows.Forms.FormWindowState.Normal
  End If
End Sub
 
Back
Top