A console application does not automatically add a reference to System.Windows.Forms.dll.
Right-click your project in Solution Explorer and select Add reference… and then find System.Windows.Forms and add it.
Related Posts:
- Error : Could not load file or assembly or one of it’s dependencies
- Unity OnTriggerEnter2D not registering
- Configuration System Failed to Initialize
- How to add a default Default.aspx to a ASP.NET Web Application Project?
- Get current folder path
- Visual Studio /**/ comment shortcut?
- “Error while trying to run project: Unable to start program”. Can run program only once. Then VS needs restart
- How do I create a Shared Code project (.shproj)
- How do I remedy “The breakpoint will not currently be hit. No symbols have been loaded for this document.” warning?
- Invalid URI: The format of the URI could not be determined
- Cross-thread operation not valid: Control accessed from a thread other than the thread it was created on
- Visual studio 2019 freezes when debugging
- Visual Studio: The Operation could not be completed. The parameter is incorrect
- How to open a new form from another form
- C# – How to convert string to char?
- Can I send SMS Messages from a C# Application?
- What is the purpose of the vshost.exe file?
- “A project with an Output type of Class Library cannot be started directly”
- “A project with an Output type of Class Library cannot be started directly”
- How to get relative path of a file in visual studio?
- How to make a simple popup box in Visual C#?
- Receiving access denied error from Visual Studio when trying to change target framework
- Visual Studio keeps crashing
- How to add a new row to datagridview programmatically
- c# Show Windows Form
- How can we generate getters and setters in Visual Studio?
- C# Debug – cannot start debugging because the debug target is missing
- The name ‘ViewBag’ does not exist in the current context – Visual Studio 2015
- Why am I getting ‘Assembly ‘*.dll’ must be strong signed in order to be marked as a prerequisite.’?
- Which passwordchar shows a black dot (•) in a winforms textbox?
- How do I fix a .NET windows application crashing at startup with Exception code: 0xE0434352?
- Create html documentation for C# code
- The provider did not return a ProviderManifestToken string Entity Framework
- Unity 5.2.2 changing Visual Studio back to MonoDevelop
- Where can I read the Console output in Visual Studio 2015
- Go To Definition: “Cannot navigate to the symbol under the caret.”
- Unity Scripts edited in Visual studio don’t provide autocomplete
- Playing a MP3 file in a WinForm application
- Get single listView SelectedItem
- Add item to Listview control
- Memory Leak caused by System.Drawing.Internal.GPStream
- Convert HTML to PDF in .NET
- How to show a loading gif while an APi is being called in xamarin android?
- ImageMagick creating blank transparent square(s) according to width
- .Net 4.8 Support for Windows 10 ends in 26 days?
- How do I generate a random int number?
- Why has the int32 type a maximum value of 2³¹ − 1? [duplicate]
- What is a NullReferenceException, and how do I fix it?
- How do I get a random YouTube video with the YouTube API?
- An existing connection was forcibly closed by the remote host
- C# HttpClient An existing connection was forcibly closed by the remote host
- How can I convert String to Int?
- What is a NullReferenceException, and how do I fix it?
- What is a PDB file?
- What is the { get; set; } syntax in C#?
- Unexplained crashes related to ntdll.dll
- I am getting Failed to load resource: net::ERR_BLOCKED_BY_CLIENT with Google chrome
- How can I parse JSON with C#?
- Can anyone explain IEnumerable and IEnumerator to me? [closed]
- What is parsing?
- What is IP address ‘::1’?
- CS0120: An object reference is required for the nonstatic field, method, or property ‘foo’
- IOException: The process cannot access the file ‘file path’ because it is being used by another process
- How to find child of a GameObject or the script attached to child GameObject via script
- Process cannot access the file because it is being used by another proess
- Getting mouse position in unity
- Error : Index was outside the bounds of the array.
- How to fix “HTTP Error 400. The size of the request headers is too long” error from azure cloud services?
- C# error: “An object reference is required for the non-static field, method, or property”
- No connection could be made because the target machine actively refused it?
- How to convert JSON to XML or XML to JSON?
- Virustotal Trapmine suspicious.low.ml.score
- What is the difference between declarative and imperative paradigm in programming?
- How to fix No connection could be made because the target machine actively refused it 127.0.0.1:64527
- Could not load file or assembly or one of its dependencies
- What does a lock statement do under the hood?
- How to make the script wait/sleep in a simple way in unity
- What is the yield keyword used for in C#?
- Group by in LINQ
- Join/Where with LINQ and Lambda
- Convert int to string?
- Converting string to byte array in C#
- Could not load file or assembly or one of its dependencies
- All possible array initialization syntaxes
- Adding values to a C# array
- C# compiler error: “not all code paths return a value”
- What is C# equivalent of
- How to use SQLite in Visual Studio 2017?
- Algorithms in O(n^2) vs O(n) [duplicate]
- LINQ’s Distinct() on a particular property
- What are the benefits to marking a field as `readonly` in C#?
- Priority queue in .Net
- How to Sort a List
by a property in the object - What is the difference between int, Int16, Int32 and Int64?
- How to resolve “Input string was not in a correct format.” error?
- failed to load resource: the server response with a status 500 (internal server error)
- Adding values to a C# array
- C# compiler error: “not all code paths return a value”
- How can I add ” character to a multi line string declaration in C#?
- C# equivalent of C++ map