TabPage - potatoscript/csharp GitHub Wiki

Activate tabpage of TabControl

_.tab.SelectedTab = _.daily;

hide and show TabPage

TabControl1.TabPages.Remove(TabPage1);
  • Removing the TabPage does not destroy it and the controls on it. To show the corresponding tab againjust use Insert as below
TabControl1.TabPages.Insert(0,TabPage1);

TabPage Control OnClick Event

private void tab_Selected(object sender, TabControlEventArgs e)
{
   if(e.TabPageIndex == 2)
   {
      cLoading c = new cLoading(this.Name, 700);
      //...code block
      v_loading.Close();
   }
}