We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

TabPageExt derived class and controls

Thread ID:





1426 Oct 28,2002 02:40 PM UTC Oct 30,2002 12:21 PM UTC WinForms 1
Tags: Tools
Brian Weeres
Asked On October 28, 2002 02:40 PM UTC

If I have several tabs on one form the code in the form can get very large and messy. I like to derive one class for each tab from TabPageExt and put that tabs code in that class. The problem is generated code from controls on the page goes in the form class not my derived tab page class. Is there anyway to associate a tab with a class/file and when controls are dropped on that page have the code for them be generated in the appropriate tabpage derived class? Same thing with events. Should I consider using the tabbed MDI framework. My app is not an MDI app though. Thanks! Brian Thanks! Brian

Administrator [Syncfusion]
Replied On October 30, 2002 12:21 PM UTC

Brian, You could instead create a UserControl for each tab page (not a derived TabPageExt), then you can populate the UserControl within it's designer and have code for the UserControl generated within that same file. Then you can drop this UserControl on to a tab page in your Forms. Tabbed MDI is also an option, but it's a whole different UI scheme, that may or may not be suitable for your app. MDI is useful when a single view (child Form type) needs to show different documents, which in turn can be opened and closed at will. Regards, Praveen Ramesh


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon