Hi all,

Let's say i have a tab control with a number of things like Textboxes, Buttons, etc. but I would like to have 9 more tabs which has the very same thing and functions and the only difference is the data being input. How do i go about doing this without coding repetitively the same thing for the 9 other tabs?

Recommended Answers

All 2 Replies

Create a method that adds the controls you want to a parent control. Call this method passing in each of the tabs for however many tabs you have.

Create a method that adds the controls you want to a parent control. Call this method passing in each of the tabs for however many tabs you have.

Hi, thanks for the response. Are there any guides that i can follow to do this? :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.