-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
23 lines (21 loc) · 884 Bytes
/
Program.cs
File metadata and controls
23 lines (21 loc) · 884 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Replace this line:
// using System.Windows.Forms;
// With:
using System.Windows.Forms; // Ensure your project targets .NET Framework or references System.Windows.Forms.dll
// If you are targeting .NET Core or .NET 5+, add a reference to the NuGet package 'System.Windows.Forms'.
// In Visual Studio, right-click your project > Manage NuGet Packages > Browse > search for 'System.Windows.Forms' and install it.
// If you are using a .NET Core/5+/6+ project, also ensure your project file (.csproj) includes:
//
// <ItemGroup>
// <PackageReference Include="System.Windows.Forms" Version="*" />
// </ItemGroup>
//
// And set the project property:
// <UseWindowsForms>true</UseWindowsForms>
//
// Example:
// <PropertyGroup>
// <OutputType>WinExe</OutputType>
// <TargetFramework>net6.0-windows</TargetFramework>
// <UseWindowsForms>true</UseWindowsForms>
// </PropertyGroup>