本文整理汇总了C#中System.Windows.Forms.ToolStripDropDownClosedEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# ToolStripDropDownClosedEventArgs类的具体用法?C# ToolStripDropDownClosedEventArgs怎么用?C# ToolStripDropDownClosedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ToolStripDropDownClosedEventArgs类属于System.Windows.Forms命名空间,在下文中一共展示了ToolStripDropDownClosedEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: menu_Closed
private void menu_Closed(object sender, ToolStripDropDownClosedEventArgs e)
{
if (this.WindowState != FormWindowState.Minimized)
{
topmost.Enabled = true;
}
}
示例2: popup_Closed
private void popup_Closed(object sender, ToolStripDropDownClosedEventArgs e)
{
if (!textBox.Visible)
{
borderLabel.Image = searchProviders.ProviderImage;
}
borderLabel.Text = searchProviders.ProviderName;
}
示例3: mnuContext_Closed
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);
}
示例4: contextMenuMain_Closed
/// <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();
}
}
示例5: contextMenu_Closed
void contextMenu_Closed(object sender, ToolStripDropDownClosedEventArgs e)
{
if (selectedToolStripMenuItem.Tag == null)
gridContainer.ClearSelected();
}
示例6: quickTextClosed
private void quickTextClosed(object sender, ToolStripDropDownClosedEventArgs e)
{
textbox.ImeMode = ImeMode.NoControl;
}
示例7: mnuApplication_Closed
private void mnuApplication_Closed(object sender, ToolStripDropDownClosedEventArgs e)
{
ApplicationMenuHover = false;
ApplicationMenuActive = false;
lblApplicationMenu.ForeColor = Color.White;
lblApplicationMenu.Invalidate();
}
示例8: dropDownButtons_DropDown_Closed
private void dropDownButtons_DropDown_Closed(object sender, ToolStripDropDownClosedEventArgs e) {
DropDownMenuBase.ExitMenuMode();
}
示例9: unavailableMenu_Closed
private void unavailableMenu_Closed(object sender, ToolStripDropDownClosedEventArgs e)
{
timetableControl1.ClearActive();
}
示例10: _trayIconContextMenuStrip_Closed
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);
}
示例11: dropDown_Closed
/// ------------------------------------------------------------------------------------
/// <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;
}
示例12: dropDown_Closed
private void dropDown_Closed(object sender, ToolStripDropDownClosedEventArgs e)
{
dropDownHideTime = DateTime.Now;
}
示例13: m_commentToolTip_Closed
/// ------------------------------------------------------------------------------------
/// <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;
}
示例14: OnClosed
protected override void OnClosed(ToolStripDropDownClosedEventArgs e)
{
fOnceKeyDown = false;
ResetImageKeys();
base.OnClosed(e);
}
示例15: contextMenu_Closed
private void contextMenu_Closed(object sender, ToolStripDropDownClosedEventArgs e)
{
this.ParentGrid.Focus();
}