Recommended Answers

All 3 Replies

And how do i make the buttons stretch with it?

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
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.