hello every one
i m using c#3.0.and working on a project my requirement is that i want open multiple tab pages with same(identical) controls on each of them,so that it looks like the same form is open in all the tab pages.
thank you.

Your best bet is to create a method that takes a TabPage as a parameter, then creates the controls, attaches event handlers and adds them to the TabPage. That way you only have to design it one time, then can use it exactly each time.

What you can do is create your first tab how you want it, then go into your <form>.Designer.cs and steal the code out of it that adds the controls to your tab page. This way you don't actually have to write much code :)

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.