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.
Unfortunately, activation email could not send to your email. Please try again.

TabPageExt derived class and controls

Thread ID:

Created:

Updated:

Platform:

Replies:

1426 Oct 28,2002 09:40 AM Oct 30,2002 07:21 AM Windows Forms 1
loading
Tags: Tools
Brian Weeres
Asked On October 28, 2002 09:40 AM

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 07:21 AM

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

CONFIRMATION

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.

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.

;