newguy
Well-known member
So I am playing around with the resize event. My form is 500 wide, my button.left is at 100. If I use:
The number in the texbox is correct - proportion wise, but it won't set the button1.Left to this number. I'm sure this is because int is a Double where .Left is an integer? How do you fix this?
VB.NET:
Dim int As Double
int = button1.Left / Me.Width ' this = 0.2
'resize event
'Button1.Left = (int * Me.Width)
TextBox1.Text = (int * Me.Width).ToString
Last edited: