[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2006-06-04
3
Medium Priority
?
242 Views
Last Modified: 2010-04-16
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?
0
Comment
Question by:groovyjon
  • 2
3 Comments
 
LVL 5

Expert Comment

by:aaronfeng
ID: 16828444
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
 

Author Comment

by:groovyjon
ID: 16828678
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
 
LVL 5

Accepted Solution

by:
aaronfeng earned 300 total points
ID: 16828875
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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question