Created
February 14, 2013 03:54
-
-
Save sAbakumoff/4950514 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void SelectAllClickHandler(object sender, EventArgs agrs) | |
{ | |
designer1.ExecuteAction(DesignerAction.SelectAll); | |
} | |
private void DesignerForm_Load(object sender, EventArgs e) | |
{ | |
var menuStrip = designer1.CreateToolStrips(DesignerToolStrips.Menu)[0]; | |
var editMenu = (menuStrip as MenuStrip).Items[1] as ToolStripMenuItem; | |
var selectAllMenu = new ToolStripMenuItem("Select All", null, SelectAllClickHandler); | |
editMenu.DropDownItems.Add(selectAllMenu); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment