Nota
Pristup ovoj stranici zahteva autorizaciju. Možete pokušati da se prijavite ili promenite direktorijume.
Pristup ovoj stranici zahteva autorizaciju. Možete pokušati da promenite direktorijume.
Starting in .NET 5, some Windows Forms controls are no longer available.
Change description
Starting with .NET 5, some of the status bar-related Windows Forms controls are no longer available. Replacement controls that have better design and support were introduced in .NET Framework 2.0. The deprecated controls were previously removed from designer toolboxes but were still available to be used. Now, they have been completely removed.
The following types are no longer available:
StatusBarStatusBarDrawItemEventArgsStatusBarDrawItemEventHandlerStatusBarPanelStatusBarPanelAutoSizeStatusBarPanelBorderStyleStatusBarPanelClickEventArgsStatusBarPanelClickEventHandlerStatusBarPanelStyle
Version introduced
5.0
Recommended action
Move to the replacement APIs for these controls and their scenarios:
| Old Control (API) | Recommended Replacement |
|---|---|
| StatusBar | StatusStrip |
| StatusBarPanel | ToolStripStatusLabel |
Affected APIs
- System.Windows.Forms.StatusBar
- System.Windows.Forms.StatusBarDrawItemEventArgs
- System.Windows.Forms.StatusBarDrawItemEventHandler
- System.Windows.Forms.StatusBarPanel
- System.Windows.Forms.StatusBarPanelAutoSize
- System.Windows.Forms.StatusBarPanelBorderStyle
- System.Windows.Forms.StatusBarPanelClickEventArgs
- System.Windows.Forms.StatusBarPanelClickEventHandler
- System.Windows.Forms.StatusBarPanelStyle