473,406 Members | 2,849 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

creating a simple form in C#

ET
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
Jul 21 '05 #1
2 1496
It is M (caps) in public static void main()...

"ET" <ET@discussions.microsoft.com> wrote in message
news:26**********************************@microsof t.com...
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
Jul 21 '05 #2
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

"Shiva" wrote:
It is M (caps) in public static void main()...

"ET" <ET@discussions.microsoft.com> wrote in message
news:26**********************************@microsof t.com...
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

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Benny Alexander | last post by:
Hi, I am using a simple form 2 email program. I ama experienced programmer, But I feel very bad, as I am unable to fix this problem. All seems to be fine, But the mail is not reacing to my...
7
by: r0adhog | last post by:
I have a very simple form: <html> <head> </head> <body> <% function ValForm() if len(document.form.newapp.all("AccessCode").Value) = 4 then document.form.newapp.submit()
1
by: Don Stefani | last post by:
Hello, I have a form that I want to submit "onchange", OK I've got that working, but when the form submits, I want to pass along a value to a CGI script, as if that value was in a hidden form...
1
by: sunrisewinesalon | last post by:
New here--I posted this to another group called 'ms access problems,' but it only had one member... Access says you can choose fields from more than one table or query to create a form--but can...
1
by: VM | last post by:
I would like to display a child form inside of an MDI but the problem is that I'll be invoking that child form from within another child form. If I use this code: frmReportViewer frmReportViewer =...
1
by: adam | last post by:
I have a simple form question. I order to access a payment gateway I have a asp.net page which has to have a form that use POST for method and _blank for target. Before the information of the form...
4
by: zazu | last post by:
I have followed the procedure for creating a form for supplying parameters to a query – http://office.microsoft.com/en-us/assistance/HA011170771033.aspx However when the query is run I still...
3
by: wolverines1 | last post by:
Problems with creating a form from two tables, in access. The data won't come from the on of the tables. Need guidance. All data is under A, but when I make a form B, none of the data comes over...
2
by: adwest | last post by:
Forgive me if this is a foolish question. I "play" in Access and have only created a few rather simple relational databases. My knowledge and experience is limited. I have no formal training, just...
1
by: Sven Willgren | last post by:
Hello All, While trying to open a form I get the following error: An error occurred creating the form. See Exception.InnerException for details. The error is: Index was out of range. Must be...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.