6 Years
Discussion Span
Last Post by bluehangook629

go to the property window of your main form and set WindowState to 'Maximized' to make your program start in full screen. In order to make the buttons stretch, you have to play around with the anchor property of your buttons. If you want your button to strech to the right when the windows is resized then you set it to right. Same for all four directions.
or if you want to code it in then you use button1.anchor = 'anchor_style'
hope this helps


Also, if you want to do this at your main form load then this would work to.

Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
Me.WindowState = FormWindowState.Maximized
Button1.Anchor = AnchorStyles.Right
End Sub
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.