M
Mark Denardo
Hi I have a TabControl object that I need to insert new TabPages into. To
append them to the end of the Controls Collection I can do:
tc.controls.add(tp)
(tc - tabcontrol object)
(tp - tabpage object)
But how can I insert them into the middle of collection? I see a 'RemoveAt'
method that takes an index to remove at a specific location, how come
there's not an 'AddAt' or 'Insert' method?
This seems like something that would be quite common for anyone working with
TabControls (or any type of Control Collection for that matter). What am I
missing here?
append them to the end of the Controls Collection I can do:
tc.controls.add(tp)
(tc - tabcontrol object)
(tp - tabpage object)
But how can I insert them into the middle of collection? I see a 'RemoveAt'
method that takes an index to remove at a specific location, how come
there's not an 'AddAt' or 'Insert' method?
This seems like something that would be quite common for anyone working with
TabControls (or any type of Control Collection for that matter). What am I
missing here?