Click here to Skip to main content
15,890,982 members
Home / Discussions / C#
   

C#

 
GeneralA Problem in my Application! Pin
leila_ata15-Mar-03 20:59
leila_ata15-Mar-03 20:59 
GeneralRe: A Problem in my Application! Pin
Stephane Rodriguez.15-Mar-03 21:22
Stephane Rodriguez.15-Mar-03 21:22 
GeneralA question of form, and size... Pin
Antoine Dubuc15-Mar-03 17:40
Antoine Dubuc15-Mar-03 17:40 
GeneralRe: A question of form, and size... Pin
Stephane Rodriguez.15-Mar-03 20:53
Stephane Rodriguez.15-Mar-03 20:53 
GeneralHiding a TabPage Pin
monrobot1315-Mar-03 16:54
monrobot1315-Mar-03 16:54 
GeneralRe: Hiding a TabPage Pin
Stephane Rodriguez.15-Mar-03 21:12
Stephane Rodriguez.15-Mar-03 21:12 
GeneralRe: Hiding a TabPage Pin
monrobot1316-Mar-03 11:45
monrobot1316-Mar-03 11:45 
GeneralRe: Hiding a TabPage Pin
Nathan Blomquist16-Mar-03 14:00
Nathan Blomquist16-Mar-03 14:00 
monrobot13 wrote:
If I do this will it destroy the page?

Not if you first save it off to member variable of the form, so that you can then just re-add the page to the collection.

// Set some member variable to the TabPage to save<br />
m_Tp = tabControl1.TabPages[i];<br />
<br />
// This removing does not destroy the page...<br />
tabControl1.TabPages.Remove(m_Tp);<br />
<br />
// ... do some stuff ...<br />
<br />
// Re-add the page<br />
tabControl.TabPages.Add(m_Tp);



You might have to see how to change the order of the tabs back to the way you had them though. I don't know off hand how to do it.

Hope this helps,
Nathan

---------------------------
Hmmm... what's a signature?
GeneralRe: Hiding a TabPage Pin
monrobot1317-Mar-03 4:53
monrobot1317-Mar-03 4:53 
GeneralNew guid as default value in column Pin
..Hubert..15-Mar-03 14:27
..Hubert..15-Mar-03 14:27 
Generaldatabinding and controls Pin
..Hubert..15-Mar-03 14:10
..Hubert..15-Mar-03 14:10 
GeneralRe: databinding and controls Pin
leppie15-Mar-03 20:27
leppie15-Mar-03 20:27 
GeneralRe: databinding and controls Pin
..Hubert..16-Mar-03 11:34
..Hubert..16-Mar-03 11:34 
Generalstrong type in XML Pin
Michal Januszczyk15-Mar-03 5:52
sussMichal Januszczyk15-Mar-03 5:52 
GeneralRe: strong type in XML Pin
Stephane Rodriguez.15-Mar-03 6:52
Stephane Rodriguez.15-Mar-03 6:52 
GeneralRe: strong type in XML Pin
Jeff J15-Mar-03 10:10
Jeff J15-Mar-03 10:10 
GeneralRe: strong type in XML Pin
Stephane Rodriguez.15-Mar-03 11:17
Stephane Rodriguez.15-Mar-03 11:17 
GeneralStarting Process problem Pin
Mazdak15-Mar-03 5:41
Mazdak15-Mar-03 5:41 
GeneralRe: Starting Process problem Pin
Stephane Rodriguez.15-Mar-03 6:31
Stephane Rodriguez.15-Mar-03 6:31 
GeneralRe: Starting Process problem Pin
Mazdak15-Mar-03 9:33
Mazdak15-Mar-03 9:33 
GeneralRe: Starting Process problem Pin
Stephane Rodriguez.15-Mar-03 11:10
Stephane Rodriguez.15-Mar-03 11:10 
GeneralRe: Starting Process problem Pin
Mazdak15-Mar-03 18:18
Mazdak15-Mar-03 18:18 
GeneralAdding a site to 'Trusted Sites' Zone Automatically Pin
Vasudevan Deepak Kumar15-Mar-03 2:09
Vasudevan Deepak Kumar15-Mar-03 2:09 
GeneralRe: Adding a site to 'Trusted Sites' Zone Automatically Pin
Stephane Rodriguez.15-Mar-03 2:44
Stephane Rodriguez.15-Mar-03 2:44 
GeneralRe: Adding a site to 'Trusted Sites' Zone Automatically Pin
Rocky Moore15-Mar-03 22:33
Rocky Moore15-Mar-03 22:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.