A
Amit
Can anyone write the code to hide tabpage of tab control in windows
form 2.0
Thanks,
Amit
form 2.0
Thanks,
Amit
Amit said:Can anyone write the code to hide tabpage of tab control in windows
form 2.0
hide a tab page is the remove it from the TabControl. To make it
visible again, you must re-insert it.
Will said:Just to add on to this...
this.tabControl1.TabPages.Remove(this.tabPage2);
will remove tabPage2 from tabControl1. Note that the tab page still
exists with everything you put in the page. It hasn't been release
from memory. Later in code, you code then have:
this.tabControl1.TabPages.Add(this.tabPage2);
and the page will reappear. This works just fine, the way you would
expect the Hide command to work. I don't know why MS didn't just make
the Hide method work in the first place.
Will said:this.tabControl1.TabPages.Add(this.tabPage2);
and the page will reappear. This works just fine, the way you would