private void InitializeComponent() { components = new Container(); toolStrip = new ToolStripClasses(); toolStrip.SuspendLayout(); SuspendLayout(); toolStrip.Dock = DockStyle.Fill; toolStrip.GripStyle = ToolStripGripStyle.Hidden; toolStrip.ImeMode = ImeMode.Disable; toolStrip.Renderer = new ToolbarRenderer(); toolStrip.BackColor = Color.Transparent; toolStrip.ItemClicked += toolStrip_ItemClicked; toolStrip.GotFocus += toolStrip_GotFocus; toolStrip.MouseDoubleClick += toolStrip_MouseDoubleClick; toolStrip.MouseActivated += toolStrip_MouseActivated; toolStrip.PreviewKeyDown += toolStrip_PreviewKeyDown; Controls.Add(toolStrip); Height = BarHeight; MinSize = new Size(20, BarHeight); toolStrip.ResumeLayout(false); ResumeLayout(); }