Hello Friends,

I want to make my vb Forms Screen Size Independent! (This may be the oldest problem.)

I have been designing my forms in 800X600 screen resolution. (You might have anticipated my problem!) When they are displayed in another screen resolution they don't look the same as before.

I have designed a module for that problem in the follwing manner.

1. Two constants hold designed screen's height & witdth

2. I compare new screen's height & width with designed screen's
height & width If they differ each other I will calculate the
percetage of difference.

3. Next looping through each control on the form I will chage
Left ,Top ,Height & Width of each control accoding to the
percentage of difference which was calculated in above step.

This routine is doing well, except for the follwing problems.
Especially when switching to lower resolution.

1. Label Controls are not displaying complete caption unless I set
their AutoSize property to true again in the above module. Which
may not be desireble for every Label on the form.

2. Combo boxes with a little bigger font size are not getting smaller
height ( ofcourse this is even true in design mode!) Causing
missproporation.

3. There is also problem with Icons size which are being set
through ImageList control.

When I am switching to higher resolution the result is quite satisfactory.

My intention is actually the designed forms must be able to work in lower resolution.

So kindly help me with a professional quality solution!