Duncan McC

Can someone let me know how i can add a TAB CONTROL to an existing windows form application

Re: Visual C# General Tab Controls

rlnd

You can simply drag'n'drop it from the VS toolbar ...

Greets





Re: Visual C# General Tab Controls

Duncan McC

You can drag and drop it to create a new form, but that means starting again with designing form and everything.

I am try to avoid that and just add it into the existing form.





Re: Visual C# General Tab Controls

rlnd

So, you want to add an existing TabControl to a form You should create a UserControl (and design the TabControl here) and then add the UserControl to any form you want to host the control. Or copy and paste it ;-)





Re: Visual C# General Tab Controls

Duncan McC

I don't think so as its not an existing tab control just an existing single page form.

Looking to add a second page to the form and a tab control to switch between them. So tab control would be new one i think, unless i'm missing something.





Re: Visual C# General Tab Controls

rlnd

Ok:

1. Add the TabControl - it contains two TabPages by default
2. Edit the TabPages' names via the property window of VS
3. Design the TabPages




Re: Visual C# General Tab Controls

Sabrecat

First off make sure you have a good back up of your project. Select everything on your main form. Cut it all. Add your Tab control, and paste all the controls you just cut into the tab page. If your Tab control was set to dock type of Fill you should have the exact same layout as was on your form.