nonney
09-10-2000, 11:20 PM
So far everything that I have coded in VB has been run on computers with a resolution of 800x600. Today I tried one of my projects out on a system using a resolution of 640x480, and was very shocked to see that only about 3/4 of the form appeared. So my question is...is there an easy way to accommodate different screen resolutions without having to basically re-size each and every control individually? The only solution that I could come up with would be to include a "Resolution" menu item with several different options for the user to choose from, with "If Then Else" statements used to resize each text box, label, etc. Ex.:
If ScrRes = "640x480" Then
txtTextBox1.Width = txtTextBox1.Width * .75
txtTextBox1.Height = txtTextBox1.Height * .75
etc., etc., etc.
End If
I know there has to be an easier way to do this, but with my limited programming experience I am unable to find an easier solution. Any help or hints will be greatly appreciated.
Thanks in Advance,
Rodney
If ScrRes = "640x480" Then
txtTextBox1.Width = txtTextBox1.Width * .75
txtTextBox1.Height = txtTextBox1.Height * .75
etc., etc., etc.
End If
I know there has to be an easier way to do this, but with my limited programming experience I am unable to find an easier solution. Any help or hints will be greatly appreciated.
Thanks in Advance,
Rodney