![]() ![]() | ||
You can add panels to a status bar at design time by opening the status bar's Panels property in the Properties window, which opens the StatusBarPanel Collection Editor, which you can see in Figure 10.21. You can use this editor to add new panels to the status bar; just click the Add button to add a new panel and fill in the properties of the panel you want. To remove a panel, use the Remove button.
To add panels to a status bar in code, you use the StatusBar.Panels.Add and StatusBar.Panels.AddRange methods; to remove panels, you use the StatusBar.Panels.Remove and StatusBar.Panels.RemoveAt methods.
![]() ![]() | ||