Hi Jim,
First of all, I would like to confirm my understanding of your issue.
From your description, I understand that you wants to resize the form and
reposition the controls on the forms according to the original layout.(i.e.
maintain the proportion)
Have I fully understood you? If there is anything I misunderstood, please
feel free to let me know.
I think so far VS.NET did not provide the feature to maintain the controls
layout proportion on the form when resizing. Usually we use the method as
Cor said.
Here is two articles about use the Anchor and panel to do the job.
Designing Resizable Windows Forms in Visual Studio .NET
http://www.devx.com/dotnet/Article/6964/1954?pf=true
Planning the form layout in VB.NET
http://www.codeproject.com/vb/net/pflvb7.asp
If you do not want to use the above method, I think we may have to do the
computation of the controls layout ourselves.
e.g.
We can set he location of the controls in the Layout event.
Me.Button1.Location = New Point(0.1 * Me.Width, 0.2 * Me.Height)
Me.Button2.Location = New Point(0.5 * Me.Width, 0.2 * Me.Height)
If you still have any concern on this issue, please feel free to let me
know.
Best regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.