bargainsoreo.blogg.se

Menustrip border
Menustrip border









New ToolStripProfessionalRenderer( new CustomProfessionalColors()) void ChangeColors_Click( object sender, EventArgs e) It assigns the Renderer // property for the ToolStrip control. This event handler is invoked when the "Change colors" // ToolStripItem is clicked. This is important for correct placement in the z-order. Add the ToolStrip to Controls collection. Dock the MenuStrip control to the top of the form.

This code example demonstrates how to use a ProfessionalRenderer // to define custom professional colors at runtime. void windowNewMenu_Click( object sender, EventArgs e)į.Text = "Form - " + () It creates a new Form and sets its MdiParent // property to the main form. This event handler is invoked when // the "New" ToolStripMenuItem is clicked. Add the ToolStripPanels to the form in reverse order. The Form.MainMenuStrip property determines the merge target. Dock the MenuStrip to the top of the form. Add the window ToolStripMenuItem to the MenuStrip. Assign the ToolStripMenuItem that displays // the list of child forms. ((ToolStripDropDownMenu)(windowMenu.DropDown)).ShowCheckMargin = true ((ToolStripDropDownMenu)(windowMenu.DropDown)).ShowImageMargin = false ToolStripMenuItem windowNewMenu = new ToolStripMenuItem( "New", null, new EventHandler(windowNewMenu_Click)) ToolStripMenuItem windowMenu = new ToolStripMenuItem( "Window") Create a MenuStrip control with a new window. Create the "Left" ToolStrip control and add // to the corresponding ToolStripPanel. Create the "Right" ToolStrip control and add // to the corresponding ToolStripPanel. Create the "Bottom" ToolStrip control and add // to the corresponding ToolStripPanel. Create the "Top" ToolStrip control and add // to the corresponding ToolStripPanel. Create ToolStrip controls to move among the // ToolStripPanel controls. Dock the ToolStripPanel controls to the edges of the form. ToolStripPanel tspRight = new ToolStripPanel() ToolStripPanel tspLeft = new ToolStripPanel() ToolStripPanel tspBottom = new ToolStripPanel()

menustrip border

ToolStripPanel tspTop = new ToolStripPanel()

menustrip border

This code example demonstrates how to use ToolStripPanel // controls with a multiple document interface (MDI). Application.Run(new Form4()) //Application.Run(new Form5()) //Application.Run(new Form6()) Application.Run(new Form1()) //Application.Run(new Form2()) / /// The main entry point for the application.









Menustrip border