Hello,
I have a form that deals with customers applications. The form splits in two panels. First panel is common for all applications (has to do with application number, application date, personal statement etc), second panel though is according to Application Type (Application Type is a combobox which being filled in the first panel). So, according to the application type value a different panel has to be called.
Is is possible to build panels as User Controls and call them when are needed instead of having 10 different panels loaded invisible all the time.
I'm looking forward hearing your opinions on this.
Loading
Danatas GerviPosted Sep 2, 2009, 11:55 AM
Simplest way – add panel on to User Control.
User Control have no border property – the panel on it – allow to define border from designer , and so on….
Swetha SrinivasanPosted Sep 4, 2009, 6:48 AM
DealyPosted Sep 2, 2009, 11:05 AM
Thank you
Danatas GerviPosted Sep 2, 2009, 8:43 AM
You can use
this.Controls.Remove(..);
this.Controls.Add(..);
To remove unnessary control and to add another.