SharpImg.System.Windows.Forms.Controls 1.0.5002

dotnet add package SharpImg.System.Windows.Forms.Controls --version 1.0.5002                
NuGet\Install-Package SharpImg.System.Windows.Forms.Controls -Version 1.0.5002                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SharpImg.System.Windows.Forms.Controls" Version="1.0.5002" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SharpImg.System.Windows.Forms.Controls --version 1.0.5002                
#r "nuget: SharpImg.System.Windows.Forms.Controls, 1.0.5002"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SharpImg.System.Windows.Forms.Controls as a Cake Addin
#addin nuget:?package=SharpImg.System.Windows.Forms.Controls&version=1.0.5002

// Install SharpImg.System.Windows.Forms.Controls as a Cake Tool
#tool nuget:?package=SharpImg.System.Windows.Forms.Controls&version=1.0.5002                

System.Windows.Forms.Controls

This package includes types and controls that were removed from System.Windows.Forms in .NET Core 3.1/.NET 5 and later versions.

According to Microsoft documentation, starting with .NET Core 3.1, various Windows Forms controls are no longer available:

  • ContextMenu
  • DataGrid
  • DataGrid.HitTestType
  • DataGridBoolColumn
  • DataGridCell
  • DataGridColumnStyle
  • DataGridLineStyle
  • DataGridParentRowsLabelStyle
  • DataGridPreferredColumnWidthTypeConverter
  • DataGridTableStyle
  • DataGridTextBox
  • DataGridTextBoxColumn
  • GridColumnStylesCollection
  • GridTablesFactory
  • GridTableStylesCollection
  • IDataGridEditingService
  • IMenuEditorService
  • MainMenu
  • Menu
  • Menu.MenuItemCollection
  • MenuItem
  • ToolBar
  • ToolBarAppearance
  • ToolBarButton
  • ToolBar.ToolBarButtonCollection
  • ToolBarButtonClickEventArgs
  • ToolBarButtonStyle
  • ToolBarTextAlign
  • StatusBar
  • StatusBarDrawItemEventArgs
  • StatusBarDrawItemEventHandler
  • StatusBarPanel
  • StatusBarPanelAutoSize
  • StatusBarPanelBorderStyle
  • StatusBarPanelClickEventArgs
  • StatusBarPanelClickEventHandler
  • StatusBarPanelStyle

It's suggested you upgrade your code to replace legacy controls, but if case your projects include many Windows Forms containing deprecated controls you can use the controls with minimal code changes.

Since it is impossible to use extension properties in .NET, extension methods should be used instead of properties:

Control type:

  • ContextMenu ContextMenu { get; set; } replace to GetContextMenu(), SetContextMenu(ContextMenu value) methods

Form type:

  • MainMenu Menu { get; set; } replace to GetMenu(), SetMenu(MainMenu value) methods
  • MainMenu MergedMenu { get; } replace to GetMergedMenu(MainMenu value) methods
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net5.0-windows7.0 is compatible.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net6.0-windows7.0 is compatible.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net7.0-windows7.0 is compatible.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net8.0-windows7.0 is compatible. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.1

    • No dependencies.
  • net5.0-windows7.0

    • No dependencies.
  • net6.0-windows7.0

    • No dependencies.
  • net7.0-windows7.0

    • No dependencies.
  • net8.0-windows7.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.5002 120 10/9/2024
1.0.5001 644 12/8/2023
1.0.5000 698 7/2/2023

This project is based on Microsoft code.