Click here to Skip to main content
15,891,907 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a Dialog view which has tab controls. Same view(graphical) will be displayed under all the tabs and only the values will be changed based on the tabs. Now i wish to add new tab with new view. But as my original dialog has created the tab controls and other graphics in its own, if i show my new dialog for the new tab added, tab controls are being hided because it is a part of my old dialog view. How to achieve my requirement wihtout much design change?
Posted

Even though you have tagged this as C++/CLI, I am not 100% sure if that is accurate. Is this C++/MFC by any chance?

Either way, the platform agnostic answer is that you should not create a new tab control. Instead you need to add a new tab to the existing tab control, and you need to add your basic view control (or controls) into this newly added tab page. It is easier if you design the child control that's supposed to show up in a tab page as a separate user control.

This holds for C#, C++/CLI or MFC.
 
Share this answer
 
Comments
Sangeetha682002 20-Jan-11 15:31pm    
Thank you...
Nish Nishant 20-Jan-11 15:33pm    
You're welcome.
Why don't you just add the new tab page to the existing form? I see no need for a design change given the description you've provided so far.
 
Share this answer
 
Comments
Sangeetha682002 20-Jan-11 15:32pm    
Yup..Thank you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900