private void ToolStripDropDown1_Closed(Object sender, Forms.ToolStripDropDownClosedEventArgs e) { System.Text.StringBuilder messageBoxCS = new System.Text.StringBuilder(); messageBoxCS.AppendFormat("{0} = {1}", "CloseReason", e.CloseReason); messageBoxCS.AppendLine(); MessageBox.Show(messageBoxCS.ToString(), "Closed Event"); }
private void menu_Closed(object sender, ToolStripDropDownClosedEventArgs e) { if (this.WindowState != FormWindowState.Minimized) { topmost.Enabled = true; } }
private void popup_Closed(object sender, ToolStripDropDownClosedEventArgs e) { if (!textBox.Visible) { borderLabel.Image = searchProviders.ProviderImage; } borderLabel.Text = searchProviders.ProviderName; }
private void mnuContext_Closed(object sender, ToolStripDropDownClosedEventArgs e) { mnuContext.Items.ClearAndDispose( mnuContext.Items.IndexOf(mnuContextCallees) + 1, mnuContext.Items.IndexOf(mnuContextCallers) - 1); mnuContext.Items.ClearAndDispose( mnuContext.Items.IndexOf(mnuContextCallers) + 1, mnuContext.Items.Count); }
/// <summary> /// Context menu has just closed. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void contextMenuMain_Closed(object sender, ToolStripDropDownClosedEventArgs e) { // Get the various modes we are in, and change them as necessary for the length of // time the menu is opened. if (fWasInSlideshowModeWhenMenuOpened) { fWasInSlideshowModeWhenMenuOpened = false; ourSlideshow.Start(); } }
private void mnuApplication_Closed(object sender, ToolStripDropDownClosedEventArgs e) { ApplicationMenuHover = false; ApplicationMenuActive = false; lblApplicationMenu.ForeColor = Color.White; lblApplicationMenu.Invalidate(); }
private void dropDownButtons_DropDown_Closed(object sender, ToolStripDropDownClosedEventArgs e) { DropDownMenuBase.ExitMenuMode(); }
private void unavailableMenu_Closed(object sender, ToolStripDropDownClosedEventArgs e) { timetableControl1.ClearActive(); }
private void _trayIconContextMenuStrip_Closed(object sender, ToolStripDropDownClosedEventArgs e) { // Restore the items back to the main menu when closing ToolStripItem[] items = new ToolStripItem[_trayIconContextMenuStrip.Items.Count]; _trayIconContextMenuStrip.Items.CopyTo(items, 0); fileToolStripMenuItem.DropDownItems.AddRange(items); _trayIconContextMenuStrip.Items.Clear(); _trayIconContextMenuStrip.Items.Add(new ToolStripSeparator()); // Dummy item so menu is shown the next time minimizeToTrayToolStripMenuItem.Checked = false; minimizeToTrayToolStripMenuItem.Font = new Font(minimizeToTrayToolStripMenuItem.Font, FontStyle.Regular); }
private void DropDown_Closed(object sender, ToolStripDropDownClosedEventArgs e) { OnDropDownClosed(EventArgs.Empty); }
void DiMenuStrip_Closed(object sender, ToolStripDropDownClosedEventArgs e) { EnableDPadMenu(false); }
private void u_toggleInputMethodDropDown_Closed(object sender, System.Windows.Forms.ToolStripDropDownClosedEventArgs e) { this.u_toggleInputMethod.ForeColor = Color.White; this.m_isInputMethodDropDownOpened = false; }
private void ctContextMenu_Closed(object sender, System.Windows.Forms.ToolStripDropDownClosedEventArgs e) { bShouldRemainVisible = false; bMouseIsOn = false; tmAnimation.Start(); }
private void ToolStripDropDown_Closed(object sender, System.Windows.Forms.ToolStripDropDownClosedEventArgs e) { _opened = false; }
private void quickTextClosed(object sender, ToolStripDropDownClosedEventArgs e) { textbox.ImeMode = ImeMode.NoControl; }
void contextMenu_Closed(object sender, ToolStripDropDownClosedEventArgs e) { if (selectedToolStripMenuItem.Tag == null) gridContainer.ClearSelected(); }
private void contextMenu_Closed(object sender, ToolStripDropDownClosedEventArgs e) { this.ParentGrid.Focus(); }
private void contextMenuStrip1_Closed(object sender, ToolStripDropDownClosedEventArgs e) { //contextMenuShowing = false; //if (hasChanged) //{ // hasChanged = false; // lvLastestUpdates.SetObjects(DataSource); //} }
protected override void OnClosed(ToolStripDropDownClosedEventArgs e) { fOnceKeyDown = false; ResetImageKeys(); base.OnClosed(e); }
void contextMenuStrip_Closed(object sender, ToolStripDropDownClosedEventArgs e) { this._isFocus = false; base.Invalidate(this._btnArrowRect); }
/// ------------------------------------------------------------------------------------ /// <summary> /// Handles the Closed event of the m_commentToolTip control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.ToolStripDropDownClosedEventArgs"/> /// instance containing the event data.</param> /// ------------------------------------------------------------------------------------ private void m_commentToolTip_Closed(object sender, ToolStripDropDownClosedEventArgs e) { m_toolTipCell = null; }
void m_DropDown_Closed(object sender, ToolStripDropDownClosedEventArgs e) { //Set the focus back to us this.Focus(); Invalidate(); }
private void dropDown_Closed(object sender, ToolStripDropDownClosedEventArgs e) { dropDownHideTime = DateTime.Now; }
private void conStrip_Closed(object sender, ToolStripDropDownClosedEventArgs e) { try { var items = gridSelected.SelectedRows.OfType<DataGridViewRow>().Select(r => (ItemReference)r.DataBoundItem).ToList(); if (items.Any()) { var selectedLevelItem = mniLevels.DropDownItems.OfType<ToolStripMenuItem>().Where(m => m.Checked).FirstOrDefault(); if (selectedLevelItem != null) { var level = mniLevels.DropDownItems.IndexOf(selectedLevelItem); foreach (var item in items) item.Levels = level; } var sysProps = (mniHistory.Checked ? SystemPropertyGroup.History : 0) | (mniPermissions.Checked ? SystemPropertyGroup.Permission : 0) | (mniState.Checked ? SystemPropertyGroup.State : 0) | (mniVersion.Checked ? SystemPropertyGroup.Versioning : 0); foreach (var item in items) item.SystemProps = sysProps; } } catch (Exception ex) { Utils.HandleError(ex); } }
/// ------------------------------------------------------------------------------------ /// <summary> /// Handles the Closed event of the m_dropDown control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:System.Windows.Forms.ToolStripDropDownClosedEventArgs"/> /// instance containing the event data.</param> /// ------------------------------------------------------------------------------------ private void dropDown_Closed(object sender, ToolStripDropDownClosedEventArgs e) { // we have to set a variable so that we know that user clicked on drop down button // or in text box to close the drop down. m_fDropDownClickedClose = ClientRectangle.Contains(PointToClient(MousePosition)); m_dropDown = null; }
private void anyStrip_Closed(object sender, ToolStripDropDownClosedEventArgs e) { ((ContextMenuStrip)sender).Text = "Hidden"; //Debug.Write(((ContextMenuStrip)sender).Name); }
private void ux_contextmenustripDGVCell_Closed(object sender, ToolStripDropDownClosedEventArgs e) { RefreshMainDGVFormatting(); }
private void m_dropDown_Closed(object sender, ToolStripDropDownClosedEventArgs e) { if (AutoResetWhenClosed) DisposeHost(); // Hide drop down within popup control. if (PopupControlHost != null) PopupControlHost.HideDropDown(); }
void m_taggingContextMenu_Closed(object sender, ToolStripDropDownClosedEventArgs e) { m_ticksWhenContextMenuClosed = DateTime.Now.Ticks; }
private void mnuDebug_Closed(object sender, ToolStripDropDownClosedEventArgs e) { DebugMenuHover = false; DebugMenuActive = false; lblDebugMenu.ForeColor = Color.White; lblDebugMenu.Invalidate(); }
void ContextMenuForDir_Closed(object sender, System.Windows.Forms.ToolStripDropDownClosedEventArgs e) { }
private void ListSelect_Close(object sender, ToolStripDropDownClosedEventArgs e) { int A = 0; for ( A = 0; A <= ListSelectItems.GetUpperBound(0); A++ ) { ListSelectItems[A].Tag = null; ListSelectItems[A].Dispose(); } ListSelect.Items.Clear(); ListSelectItems = new ToolStripItem[0]; App.ViewKeyDown_Clear(); }
private void ctx_gesturesMenu_Closed(object sender, ToolStripDropDownClosedEventArgs e) { pic_menuBtn.Image = Properties.Resources.menuBtn; }
//------------------------------------------------------------------------------------- private void contextMenuStripFind_Closed(object sender, ToolStripDropDownClosedEventArgs e) { if(e.CloseReason == ToolStripDropDownCloseReason.ItemClicked) BeginFind(); }
private void contextMenuStrip1_Closed(object sender, ToolStripDropDownClosedEventArgs e) { removeToolStripMenuItem.DropDownItems.Clear(); }