MTSkull Posted July 21, 2003 Posted July 21, 2003 How Do I... 1. Maximize a form on form load... me.maxamize? 2. Expose the display properties. 1024 X 768?? Thanks Brian Quote "Beer is proof that God loves us and wants us to be happy." -Benjamin Franklin
*Experts* mutant Posted July 21, 2003 *Experts* Posted July 21, 2003 1. Me.WindowState = FormWindowState.Maximized Why not set it in the designer if you do it on form load? 2. Dim sc As Rectangle = Screen.PrimaryScreen.WorkingArea 'get the screen width MessageBox.Show(sc.Width) 'get the screen height MessageBox.Show(sc.Height) :) Quote
MTSkull Posted July 21, 2003 Author Posted July 21, 2003 I can but I was wondering what the command was. Thanks Brian Quote "Beer is proof that God loves us and wants us to be happy." -Benjamin Franklin
Leaders dynamic_sysop Posted July 21, 2003 Leaders Posted July 21, 2003 you beat me mutant :p Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.WindowState = FormWindowState.Maximized End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click MessageBox.Show(Screen.PrimaryScreen.Bounds.Width & " " & Screen.PrimaryScreen.Bounds.Height) End Sub was my example i was putting together. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.