creating a simple form in C#

G

Guest

Hello everyone
I just started learning C# and i want to create a form.
I started an empty project and wrote the folloing code:

using System;
using Application;
using System.Windows.Forms.Form;

namespace MyForm
{

public class MainClass
{
public static void main()
{
Form helloForm = new Form();
helloForm.text = "Hello World";
Application.Run(helloForm);
}
}
}

The builder says that the exe file does not have entry point defined.
What does it mean and what should i do?
Thanks,
ET
 
S

Shiva

It is M (caps) in public static void main()...

Hello everyone
I just started learning C# and i want to create a form.
I started an empty project and wrote the folloing code:

using System;
using Application;
using System.Windows.Forms.Form;

namespace MyForm
{

public class MainClass
{
public static void main()
{
Form helloForm = new Form();
helloForm.text = "Hello World";
Application.Run(helloForm);
}
}
}

The builder says that the exe file does not have entry point defined.
What does it mean and what should i do?
Thanks,
ET
 
G

Guest

Thank you but that wasn't the problem.
I found out what was wrong - I needed to add a DLL and that was not written
in the book.
ET
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top