Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / August 2007

Tip: Looking for answers? Try searching our database.

Custom container control with limited container region

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mnuckols@gmail.com - 27 Aug 2007 16:45 GMT
I am trying to create a custom container control for Windows Forms
using C#.NET 2.0.  My problem is that I want only part of the control
to allow other controls to be placed on it at design time.  A similar
example to what I'm trying to accomplish is a Tab Control.  The tab
pages of a tab control allow child controls to be added to the page
region, but not to the tab.  Does anyone know how to accomplish this?
Nicholas Paldino [.NET/C# MVP] - 27 Aug 2007 17:01 GMT
This is done through separate controls on the TabControl.  The
TabControl has TabPage instances which it exposes which you can drop
controls on.  You have to take the same approach, having a child control
which will be allowed to host controls, and then not allow it on the parent.

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

>I am trying to create a custom container control for Windows Forms
> using C#.NET 2.0.  My problem is that I want only part of the control
> to allow other controls to be placed on it at design time.  A similar
> example to what I'm trying to accomplish is a Tab Control.  The tab
> pages of a tab control allow child controls to be added to the page
> region, but not to the tab.  Does anyone know how to accomplish this?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.