I have now the line:
using System.Windows.Forms;
then I have the compile error: "The best overloaded method match for
"System.Windows.Forms.Application.Run(System.Windo ws.Forms)" has some
invalid
argument"
OK, I can understand, the object parameter must be a form object, my "start"
class is any form, is only a normal class.
How can I do? Is it possible, to use a normal class (as in java, or VB6) as
start point for a program?
Nhan
"Jon Skeet [C# MVP]" <sk***@pobox.com> schrieb im Newsbeitrag
news:MP************************@msnews.microsoft.c om...
Le, Thanh-Nhan <le*****@freenet.de> wrote: I am a beginner in .NET.
I am creating a new project. At begin I created this project with a
form, then a class."start"
I want to use class "start" as start point for this program. In this
class I wrote:
[STAThread]
static void Main()
{
Application.Run(new start());
}
But I can not build, compile the project, the error is:
The type or namespace name "Application" could not be found
What can I do?
Make sure you have "using System.Windows.Forms;" in your list of using
directives.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too