When the user resizes the form, I want to make the controls increase in size and anchor in proportion with the form's width and height. Well, everything is ok with my code, except that my system's style is set to the classic Windows theme, and when I try on another style (the one most users have), it looks horrible.
For instance, in mine, the main textbox control is at the same distance from the form's width as it is from the form's left (120 twips from the form's left and the control's left, and 120 twips from the control's width to the form's width).
When I use the other theme, it's still at 120 distance from the lefts, but the control's right is exactly in the same place as the form's right.
In image format:
Name:  1.gif
Views: 346
Size:  937 Bytes Is how it looks using the classic theme
Name:  2.gif
Views: 368
Size:  926 Bytes Is how it looks using the common theme

So, I'm looking for a solution to make the resizing work well in every computer. Specially if the solution is about an optimized resizing algorithm.