creating a simple form in C#

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
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
 
Back
Top