How do I resize a Form and keep the textbox the same ratio and the Listbox always the same width but it's height is resized keeping the same ratio
Example:
ScaleMode = Pixels
Form.Width = 9390 (ScaleWidth = 618)
Form.Height = 5460 (ScaleHeight = 318)
Text1.Left = 3
Text1.Width = 423
Text1.Top = 56
Text1.Height = 211
List1.Left = 430
List1.Width = 185
List1.Top = 56
List1.Height = 238
As the Form is resized I want the width and height of Text1 to resize and I want the Listbox to resize in height only keeping it's width always the same and it's left the same distance from the textbox
Example:
ScaleMode = Pixels
Form.Width = 9390 (ScaleWidth = 618)
Form.Height = 5460 (ScaleHeight = 318)
Text1.Left = 3
Text1.Width = 423
Text1.Top = 56
Text1.Height = 211
List1.Left = 430
List1.Width = 185
List1.Top = 56
List1.Height = 238
As the Form is resized I want the width and height of Text1 to resize and I want the Listbox to resize in height only keeping it's width always the same and it's left the same distance from the textbox