WyleOP
asked on
Resize form with multiple multiline textboxes
I have a vb.net form with two multiline textboxes. When I resize the form, I want both textboxes to resize proportionately. Right now, I can only get one of the two to do this properly. I've tried added code to the form_resize event like this:
Panel2.Height = Panel4.Height
But it doesn't work well on a Maximize.
Any thoughts?
4-8-2009-2-50-24-PM.png
Panel2.Height = Panel4.Height
But it doesn't work well on a Maximize.
Any thoughts?
4-8-2009-2-50-24-PM.png
even Anchor won't help to resize proportionaly.
"proportionaly" was the wrong word. It would look silly if it was resized proportionally.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Your solution was elegant and perfect for my needs. Great job.
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.anchor.aspx
Wayne