private void tabControlGlobeBottom_TabItemClose(object sender, TabStripActionEventArgs e) { try { e.Cancel = true; DevComponents.DotNetBar.TabControl tabcontrol = sender as DevComponents.DotNetBar.TabControl; if (tabcontrol != null) { tabcontrol.SelectedTab.Visible = false; bool hasvisible = false; for (int i = 0; i < tabcontrol.Tabs.Count; i++) { if (tabcontrol.Tabs[i].Visible) { hasvisible = true; break; } } expandableSplitter1.Expanded = hasvisible; } } catch (Exception ex) { } }
/// <summary> /// event khi click vào chọn skin /// </summary> /// <param name="sender"></param> /// <param name="e"></param> #region các sự kiện chỉnh form private void tabMain_TabItemClose(object sender, TabStripActionEventArgs e) { TabItem t = tabMain.SelectedTab; //if (t.Name == "frmCheckin") // return; tabMain.Tabs.Remove(t); }
//sự kiện đóng tab private void tabControl1_TabItemClose_1(object sender, TabStripActionEventArgs e) { DialogResult dl = MessageBox.Show("Bạn có muốn đóng tab " + tabControl1.SelectedTab.Text + "", "Đóng", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (dl == DialogResult.Yes) { tabControl1.Tabs.Remove(tabControl1.SelectedTab); } }
private void tabStrip1_TabItemClose(object sender, TabStripActionEventArgs e) { if (tabStrip1.SelectedTab != null) { RemoveTab(tabStrip1.SelectedTab); // The actual cancel is performed in RemoveTab(), so we need to // cancel this removal, otherwise unexpected behaviour occurs. e.Cancel = true; } }
void tabControl1_TabItemClose(object sender, TabStripActionEventArgs e) { TabItem t = tabControl1.SelectedTab; tabControl1.Tabs.Remove(t); if (tabControl1.Controls.Count - 1 == 0) { panel1.Controls.Clear(); } }
private void FTabs_TabItemClose(object sender, TabStripActionEventArgs e) { // do not allow to close the "Code" tab if (FTabs.SelectedTab.Tag == null) { e.Cancel = true; } else { Designer.cmdDeletePage.Invoke(); } }
private void tabControl1_TabItemClose(object sender, TabStripActionEventArgs e) { TabItem itemRemove = tabP.SelectedTab; tabP.Tabs.Remove(itemRemove); tabP.Controls.Remove(itemRemove.AttachedControl); tabP.RecalcLayout(); if (tabP.Tabs.Count == 0) { this.Dispose(); } }
private void tabContent_TabItemClose(object sender, TabStripActionEventArgs e) { this.tabContent.Tabs.Remove(this.tabContent.SelectedTab); tabContent.Refresh(); }
private void tabs_TabItemClose(object sender, TabStripActionEventArgs e) { ((DevComponents.DotNetBar.TabControl)sender).SelectedTab.AttachedControl.Controls[0].Dispose(); }
private void tabControl1_TabItemClose(object sender, TabStripActionEventArgs e) { close_this(); }
// chuột phải đóng trang private void tabMain_TabItemClose(object sender, TabStripActionEventArgs e) { CloseThis(); }
private void tabControl1_TabItemClose(object sender, TabStripActionEventArgs e) { DeleteTab(FCurrentPreview); e.Cancel = true; tabControl.RecalcLayout(); }
private void tabContent_TabItemClose(object sender, TabStripActionEventArgs e) { TabItem tab = tabContent.SelectedTab; tabContent.Tabs.Remove(tab); }
private void SuperTabControl_Main_TabItemClose(object sender, TabStripActionEventArgs e) { e.Cancel = true; e.TabItem.Visible = false; }
private void DongTap(object sender, TabStripActionEventArgs e) { TabItem chontab = tabControl1.SelectedTab; tabControl1.Tabs.Remove(chontab); }
private void TabHeThong_TabItemClose(object sender, TabStripActionEventArgs e) { DongTab(); }
private void tabMain_TabItemClose(object sender, TabStripActionEventArgs e) { TabItem tb = tabMain.SelectedTab; tabMain.Tabs.Remove(tb); }
/// <summary> /// 关闭绘图 /// </summary> /// <param name="sender">事件发送者</param> /// <param name="e">事件</param> private void tabControl1_TabItemClose(object sender, TabStripActionEventArgs e) { documentManager.CheckAndSaveFlowChart(); }