Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 77
  • Last Modified:

Hide Tab Page

Hi,

In Windows forms TabControl how can hide a particular tab page. Not remove, because i need some controls in the tab.

best regards
0
rflorencio
Asked:
rflorencio
3 Solutions
 
Pawan KumarDatabase ExpertCommented:
Try..

Remove when not needed and again add when needed

YourtabControl.TabPages.Remove(tabControls);
YourtabControl.TabPages.Add(tabControls);

Open in new window

0
 
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
You actually call the Remove method, which is poorly named - it does not remove or delete the TabPage, just hides it:

YourTabControl.TabPages.Remove("YourTabPage")
0
 
Éric MoreauSenior .Net ConsultantCommented:
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now