-
How can i resize entire form created in visual basic so that, when i resize the form, it automatically resizes all the controls inside it accordingly.I do not mean increasing the size of the controls inside the form, but to adjust all the controls with equal spacaing.
-
-
HOLLLLLLLLYYYY whatever that works!!!
-
To get it so It won't resize only respace add some comment tags!
after * scale y and over the fonts
Ctl.Move D(0) * ScaleX, D(1) * ScaleY ', D(2) * ScaleX, D(3) * ScaleY
' Ctl.Width = D(2) * ScaleX
' Ctl.Height = D(3) * ScaleY
'Change font size
If ScaleX < ScaleY Then
' Ctl.FontSize = D(4) * ScaleX
Else
' Ctl.FontSize = D(4) * ScaleY