How do I add my dialog controls to a new tab page?

I have a dialog box on which I have a number of controls. I have now decided to split it into tabbed pages. But how do I move those existing controls onto one of the tab pages?
groovyjonAsked:
Who is Participating?
 
aaronfengConnect With a Mentor Commented:
Ok, Let say, you have 3 button, 3 TextBox, 1 ComboBox, and 2 CheckBox.  You want them all to appear as a group in your TabPage.  What you could do is to drop all the controls onto the Tabpage, but if you want to move them again,  you'll have to manually move each control one by one.  Ideally you would want to move them as a group.  If create a UserControl with all the stuff I described on it, you can just drop the UserControl onto the TabPage (or add it programmatically).  Make sure you set the Dock to Fill on the UserControl.

Cheers,

Aaron
http://aaronfeng.blogspot.com
0
 
aaronfengCommented:
You can convert it into a UserControl, so your UserControl will have all the controls you want on a TabPage.  Once you done that, you can just drop your custom UserControl onto the TabPage.  If you do it this way, in the future if you want to move it, you can just drop your custom UserControl else where.

Cheers,

Aaron
http://aaronfeng.blogspot.com
0
 
groovyjonAuthor Commented:
Can you clarify what you mean? What are you referring to when you say convert "it" into a UserControl? The TabPage or the individual controls? And how do I actually make the conversion?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.