VB.Net: Resize Controls when form resizes
Posted on 2012-04-05
On my main form, I have got three datagridviews, and they are just drawn during development.
But after I deploying on to many computers that I realized that different screens are not suiting my form. I.E the user wants the datagridview to control to grow when the form is resized big or small when the form is resized small.
To achieve this I had to calculate the distance between the controls size from the form border and then add the distance between in the form resize event. So that depending on the forms size the control would fit. But it was not easy to deal with multiple controls, because I had to do the same to the rest of the gridview controls.
So is there any other alternative way to accomplish this task.
Thanks in advance.