"dotnetnewbie" <do**********@discussions.microsoft.com> schrieb:
I want to add additional tab pages on my form e.g.
Dim db As New TabPage
tabDetails.Controls.Add(db)
Where tabDetails is the tabcontrol on the form.
What is the best way of ensuring that all of the controls (e.g. textboxes,
combo boxes etc) from the first tab page get copied onto any new tabpages
I
create ?
What you can do is designing a usercontrol that contains all the tabpage's
controls. This control can be instantiated at runtime and added to another
tabpage. However, notice that this won't automatically copy
values/selections made in an existing instance of the usercontrol to the new
instance.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>