Can’t convert a .NET console application to a Windows Forms

  windows, winforms

everyone! I’m beginner in programming)
And now I’m trying to convert console application to windows forms.
I changed output type to windows application, added references System. Drawing; and System.Windows.Forms; – in progect properties. But yellow triangles are there…
And this is my program.cs :

using System. Drawing;
using System.Windows.Forms;

namespace Final
{
class Program: System.Windows.Forms.Form

{
    Program() 

    {
        InitializeComponent();
    }

    static void Main()

    {
        Application.EnableVisualStyles();
        Application.Run(new Program());

        /*...
        progam doing something
        */
     }

What is the mistake? help, please!

Source: Windows Questions

LEAVE A COMMENT