private void tsb_MouseDown(object sender, MouseEventArgs e) { try { ToolStripSplitButton tsb = sender as ToolStripSplitButton; tsb.ShowDropDown(); } catch (Exception ex) { System.Diagnostics.Debug.WriteLine(ex.Message); } }
private void toolStripSplitButton1_ButtonClick(object sender, EventArgs e) { ToolStripSplitButton btn = sender as ToolStripSplitButton; if (btn != null) { btn.ShowDropDown(); } }
private void toolStripSplitButton1_ButtonClick(object sender, EventArgs e) { ToolStripSplitButton tssb = sender as ToolStripSplitButton; if (tssb == null) { return; } tssb.ShowDropDown(); }
private void ToolStripSplitButton_ButtonClick(object sender, EventArgs e) { ToolStripSplitButton control = (ToolStripSplitButton)sender; control.ShowDropDown(); }
private void menuItemShow_ButtonClick(object sender, EventArgs e) { menuItemShow.ShowDropDown(); }