Avoid duplicated code

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
 
W

Wyrm

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.
 
B

Brofalad

Thanks for your respond!
I have implemented a usercontrol now. Definitely the way to go in my
case.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top