Click here to Skip to main content
13,148,260 members (52,676 online)
Rate this:
Please Sign up or sign in to vote.
I need to change the panel control inside a tab page with another panel control .. how to catch (get) the panel in the tab page ?
Posted 15-Feb-13 4:55am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

All content controls have a Controls property, you can add/remove items on it by index or control name as tabpage.Controls["panelName"]
Hend Riad 15-Feb-13 12:32pm
But it can't be used in exchanging controls because it's a read only property, i can't replace a control by another via assignment operator.
sbromanv 15-Feb-13 12:36pm
clear the collection and repopuled it withs the controls on the other, the Controls porpertiy has a clear,add and copyTo method

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.170924.2 | Last Updated 15 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100