Click here to Skip to main content
15,884,472 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I used a tab control having multiple pages , based on customer requirement changes , I need to convert this tab control to a user control to be used in many window forms , is there a way to take it from [design] view and convert it to an explicit user control ?

What I have tried:

I encountered this before and I just took it's code implemented in the .designer code and tweak it in a new user control class , but if this is automated it'll save me hours
Posted
Updated 9-Nov-17 21:41pm
v2
Comments
GKP1992 10-Nov-17 6:00am    
You'll have to create it from scratch. Although you can use the browser's developer tools to some extent, most of the work you have to do yourself.
Hermann Jung 11-Nov-17 3:15am    
Try this:
- copy the form containing your tab control
- rename copied files and class name (in .cs and .desinger.cs)
- open copy in designer and remove all unwanted control and components
- save file
- unload project
- change baseclass of copied form to UserControl
- reload project
- there may be some code-issues in .cs and designer.cs because of changed baseclass; repair them
Good luck!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900