System.Windows.Forms.ToolBar toolBar; System.Windows.Forms.ToolBarButton bouton; System.Windows.Forms.ContextMenu menu; System.Windows.Forms.MenuItem menuItem1; System.Windows.Forms.MenuItem menuItem2; System.Windows.Forms.MenuItem menuItem3; private void InitializeComponent() { this.toolBar = new System.Windows.Forms.ToolBar(); this.bouton = new System.Windows.Forms.ToolBarButton(); this.menu = new System.Windows.Forms.ContextMenu(); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.menuItem2 = new System.Windows.Forms.MenuItem(); this.menuItem3 = new System.Windows.Forms.MenuItem(); ... this.bouton.Style = System.Windows.Forms.ToolBarButtonStyle.DropDownButton; this.bouton.DropDownMenu = this.menu; ... this.menu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {this.menuItem1, this.menuItem2, this.menuItem3}); ... this.toolBar.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {this.bouton}); }