I also tried pasting it in after the default...
"Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
End Class"
The same errors showed up.
I opened a new project, double-clicked on the blank form to open the coding window, selected all, deleted, then pasted in your code from above.
It gave me 2 errors...
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
...gives me the error "Attribute...
Zameer,
Thank you for the links. When I tried what they said, I could get one text box per form to resize as I changed the form size while it was running.
However, it would not change the size/position of labels.
My goal is changing the screen between 1024x768 and 1280x800 resolutions...
I've tried anchor and dock. The problem is, this is a game window with controls and pictureboxes spread all over the screen. When the screen changes resolutions they don't resize/reposition accurately.
Okay, I have the form to resize to match the screen resolution, but how do I get the controls to rescale to stay in their same relative locations and sizes?
I have a program in VB2005.net that needs to change the screen resolution and then adjust the form to fill the new screen. I have the screen resolution changes controlled by radio buttons.
The resolution changes, but my form remains the same size. The form is originally designed as 1024x768...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.