private void tabControl_TabItemClose(object sender, DevComponents.DotNetBar.TabStripActionEventArgs e) { //if (MessageBox.Show("Bạn có chắc chắn muốn đóng form?", "Thông báo", MessageBoxButtons.YesNo) == DialogResult.No) // return; // else tabControl.Tabs.Remove(tabControl.SelectedTab); }
private void tabStrip1_TabItemClose_1(object sender, DevComponents.DotNetBar.TabStripActionEventArgs e) { //ne te njejten kohe mbyllim edhe elementin ne tabStrip //edhe dokumentin ne documentManager if (tabStrip1.SelectedTab.Name == "FaqjaKryesore") { return; } int index = tabStrip1.SelectedTabIndex; documentManager.RemoveDocument(documentManager.FocusedDocument); tabStrip1.Tabs.RemoveAt(index); }
private void tabControl1_TabItemClose(object sender, DevComponents.DotNetBar.TabStripActionEventArgs e) { tabControl1.Tabs.Remove(tabControl1.SelectedTab); }
/// <summary> /// ktra du lieu truoc khi dong page /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void tabMenu_TabItemClose(object sender, DevComponents.DotNetBar.TabStripActionEventArgs e) { Console.WriteLine(((DevComponents.DotNetBar.TabControl)sender).SelectedTab.Name); }
private void tabStrip1_NavigateBack_1(object sender, DevComponents.DotNetBar.TabStripActionEventArgs e) { tabStrip1.SelectedTabIndex = tabStrip1.SelectedTabIndex - 1; }