private void InitializeComponent() { Width = 80; Height = 20; Title = "Main Window"; panel1 = new Panel() { VerticalContentAlignment = VerticalAlignment.Center, HorizontalContentAlignment = HorizontalAlignment.Center, }; statusBar1 = new StatusBar(); statusBar1.AddHelpButton(); statusBar1.AddLabel("label docked right", Dock.Right); AddContent(panel1); }