How do I deal with users' different resolutions when creating a program?

Is there any API to help deal with it?

What if i design my program in 1024 X 768 and a user, who uses my program, views it in 800 X xxx resolution? Is there any way to always keep all the control elements intact, so that it'll be standardised across any resolution chosen?