Click to See Complete Forum and Search --> : Form resize code


ar7kasper
December 18th, 1999, 10:49 AM
I want the controlls to be in a reltive posission when resizing the form
please help me with the code, it's very urgent

smalig
December 18th, 1999, 11:39 AM
You need use the Resize event of your forms. For sample, if you have a TextBox Control on your form then you need copy follow code to form declaration section:

Private Sub Form_Resize ()
Text1.Move 0,0, ScaleWidth, ScaleHeight
End Sub

smalig@hotmail.com
http://vbcode.webhostme.com/

PanasonicSubz
December 20th, 1999, 12:10 AM
if you need to resize the form just use this code
form1.width = #whatever number
form1.height = #whatever number

PanasonicSubz