assembly driven parts

I want some parts to adapt to my assembly. How can i do that?
For example: a door that sits in a frame and when you change thesize of the frame, the door changes with it.

Can someone explain how this is done or give me a good article onthe web on this subject?

Thank you.SolidworksAssemblies