Tab control and each tab its own class

  • Thread starter Richard Lewis Haggard
  • Start date
R

Richard Lewis Haggard

It seems as though the default behavior for a tab control is for the parent
form to get all of the messages for all of the pages in the tab control. Is
there an easy way around this? I've got an application UI where the desired
behavior is a large set of tabs with each tab containing its own sub tabs.
Having the main form field everything from all of these tabs and their sub
tabs is going to be a bit messy so I'd like to do something like one would
do in MFC. I'd like to have each tab be its own class and handle all of its
own logic and message needs independently of the parent form.
 
R

Richard Lewis Haggard

Ah. The answer turned out to be very easy. User control. Each page's layout
and logic goes into a user control and then the user control is overlayed on
the page.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top