Hi,
I have a tab control and several tab pages within it. I have a set a controls like buttons, textboxes etc... that I want to appear on each of the tab pages. I want the same set of controls to appear on each of the tab pages. I will update their values on the tab control's SelectedIndexChanged event.
How do I get that one set of controls to appear on each tab page
Thanks

Controls on tab pages
castrini
Thanks
Pawel Pabich
There are better ways to do this that provide a better closure and cleaner code, but you should be able to get away with quickly coding this.
Karlo123
vaidya
Tab Pages have a control collection of all the controls "embedded" within them right As in tabPage1.Controls.AddRange( new Control[] { button1, button2 } );
Well, I tried to have a common Control array of all the controls and add that array to the tab pages...
Control[] controls = new Control[] { button1, button2 } );
And then
tabPage1.Controls.AddRange( controls );
tabPage2.Controls.AddRange( controls );
But that didn't seem to work. Only the tabPage2 would have the controls on it. Any idea why this is happening
Regarding your solution. How would I get the hidden tabPage to appear in the position of the one that was clicked
Thanks again.