B4J Question open in full screen

electro179

Active Member
Licensed User
Longtime User
Hi


How to open a program directly in full screen and not use

#MainFormWidth: 1024
#MainFormHeight: 600

thank you
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
B4X:
Sub AppStart (Form1 As Form, Args() As String)
   MainForm = Form1
   MainForm.WindowWidth = fx.PrimaryScreen.MaxX - fx.PrimaryScreen.MinX
   MainForm.WindowLeft = fx.PrimaryScreen.MinX
   MainForm.WindowHeight = fx.PrimaryScreen.MaxY - fx.PrimaryScreen.MinY
   MainForm.WindowTop = fx.PrimaryScreen.MinY
   MainForm.Show
End Sub
 
Upvote 0
Top