Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Screen Resolution Problems

Status
Not open for further replies.

dirksm

Programmer
Mar 14, 2002
22
0
0
GB
Hi All.

I have a problem in VB when using different screen resolutions. I'm using the SysInfo control to resize my form whenever the resolution changes, however the controls (which I have grouped together on a frame) does not resize with the form. This causes some of the controls on my form to be "cut-off" when changing to a lower resolution, or they loose their positions and become rather miniscule when changing to a higher resolution. I would like to have my controls resize with the form, as well as to keep their relative positions on the form.

Can anybody help me, please??
 
Hi,

Here are some suggestions:
1) limit the number and size of you controls to fit into any resolution.
2) Resize you controls as the form resizes:
Text1.Width = OriginalTextBoxWidth * Form.ScaleWidth / OriginalFormWidth.
3) use a MDI form to enables scrolling of your form like strongm shows in thread222-97891 Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top