I am contemplating whether to use tabstrip or multipage control on a form i am designing. What are the main differences between the two controls?
Thanks,
Adam.
I am contemplating whether to use tabstrip or multipage control on a form i am designing. What are the main differences between the two controls?
Thanks,
Adam.
Last edited by adam2308; 10-25-2009 at 11:45 AM.
Hello - This is from the web from author Herilane . .
A multipage control has several pages. Choosing a different page shows that page and hides the other ones. The contents of each page are completely separate, and you will have to put controls in each one separately.
A tabstrip control has no client area, no pages. It is in effect just like a set of option buttons, but it looks different. It doesn't show or hide anything automatically.
A tabstrip is useful if you want to tab through data for example. You may want to display address information for a customer for example. Tab1 would fill the address info controls with the customer's main address, and Tab2 would bring up their invoice address instead. You would be reusing the same controls for both addresses; the tabstrip is simply used to select what data to show in them.
A multipage is used if you want to have completely separate layouts. Page1 might hold the customer's address, Page2 might have their order history, and Page3 might be your notes about them.
What can I do in one that I can not do in the other one?
Nothing, really.
You can make a tabstrip work like a multipage, if you want, by making several frames, and using the Tabstrip_Change event to show and hide them.
You can make a multipage work like a tabstrip, if you want, by adding the same controls to all the pages.
But it doesn't make much sense.![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks