private bool Add_SuperTab(ref SuperTabControl tabControl, string title, MyFormPage form) { try { if (CheckOpenTabs(title)) { superTabControl.TabIndex = superTabControl.Tabs.Count - 1; } else { SuperTabItem tabPage = tabControl.CreateTab(title); tabPage.AttachedControl.Controls.Add(form._Mypanel); superTabControl.SelectedTabIndex = superTabControl.Tabs.Count - 1; } return(true); } catch (Exception) { return(false); } }
private bool Add_SuperTab(ref SuperTabControl tabControl, string title, MyFormPage form) { try { if (CheckOpenTabs(title)) { superTabControl.TabIndex = superTabControl.Tabs.Count - 1; } else { SuperTabItem tabPage = tabControl.CreateTab(title); tabPage.AttachedControl.Controls.Add(form._Mypanel); superTabControl.SelectedTabIndex = superTabControl.Tabs.Count - 1; } return true; } catch (Exception) { return false; } }
public MyTagPage(MyFormPage frm_contensido) { this.frm = frm_contensido; this.Controls.Add(frm_contensido._Mypanel); this.Text = frm_contensido.Text; }