Set your panel's Anchor property to Top,Bottom,Left,Right in the properties window so when you resize your form at the runtime your panel will be resized with your form consequently...
It is not working in 2003 version because panel has no achor property plz tell me solution.
I am explaining my problem. Actually i want to call different forms into panel and panel size change at runtime according to different conditions and i want form's size also change according to panel size.
As I understand you fill panel dynamically and you don't know exactly how much controls will be so you want to panel fit with size of controls and so with form, you have two options:
1: set panel scrollable and make it dock into form in fill mode.
2: you have to get size( width x height) of each control you add then resize form to required size where panel Dock option set into fill mode