Avoid duplicated code

  • Thread starter Thread starter Brofalad
  • Start date Start date
B

Brofalad

Hi
Anyone have a solution for this.
I have two different dialogs each with a tabcontrol. One tab in each
tabcontrol is identical, this tab contains lots of controls and code.
It there a smart way not to duplicate the code for this tab?
/Brofalad
 
Hi
Anyone have a solution for this.
I have two different dialogs each with a tabcontrol. One tab in each
tabcontrol is identical, this tab contains lots of controls and code.
It there a smart way not to duplicate the code for this tab?
/Brofalad

Hello...

You could make a "myTabControl" Class with your duplicate tab and code
and inheriting from TabControl.
 
Thanks for your respond!
I have implemented a usercontrol now. Definitely the way to go in my
case.
 
Back
Top