Does someone have code that makes a program's controls display correctly to fit the resolution of the computer that it's running on?

Thx.