"Madalin Nicula" <MadalinNicula@hotmail.com> schrieb:
> I have a console app which works fine and I want to convert it to a
> WinForm app.Can anyone help me how to do it?
You can change the project type in the project properties dialog.

Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/
Teis Draiby - 21 Dec 2004 13:49 GMT
You also need to inherit your class from the 'System.Windows.Forms.Form'
class which will automatically activate Form Designer support (very nice
detail).
Remember to add a reference to the System.Windows.Forms dll.
This is the minimum code for a Windows Application:
--- Code --------------------------------
using System;
using System.Windows.Forms;
namespace MyNamespace
{
class MyClass : System.Windows.Forms.Form
{
[STAThread]
static void Main()
{
Application.Run( new MyClass() );
}
}
}
------------------------------------------
(To show what you created in the Form Designer you need to call
InitializeComponent() from the class constructor)
good luck, Teis
> "Madalin Nicula" <MadalinNicula@hotmail.com> schrieb:
> > I have a console app which works fine and I want to convert it to a
> > WinForm app.Can anyone help me how to do it?
>
> You can change the project type in the project properties dialog.