コード例 #1
0
 private void CreateStatusBar()
 {
     statusPanel.BorderStyle = StatusBarPanelBorderStyle.Sunken;
     statusPanel.AutoSize    = StatusBarPanelAutoSize.Spring;
     mainStatusBar.Panels.Add(statusPanel);
     datetimePanel.BorderStyle = StatusBarPanelBorderStyle.Raised;
     mainStatusBar.Panels.Add(datetimePanel);
     mainStatusBar.ShowPanels = true;
     this.Controls.Add(mainStatusBar);
     mainStatusBar.BringToFront();
 }