My C# Program has a stupid error, need help.

aff1993

In Runtime
Messages
199
My program has this error, i am trying to debug and it wont work.
Please help.
here is the error

Compiling IconEditor
error CS5001: Program 'c:\Documents and Settings\Tony\My Documents\SallyIDE C#\Sally IDE Source Code\IconEditor\obj\Debug\TestProject.exe' does not contain a static 'Main' method suitable for an entry point
Build failed.

Thanks, if you need more please ask, thanks
 
heres the code.


#region Garbage
/*
public class MyApplication
{
public static IconEditorDockContent mainWindow;
[STAThread]
public static void Main()
{
Application.EnableVisualStyles();
mainWindow=new IconEditorDockContent();
Application.Run(mainWindow);
}
}
*/
#endregion
}



Thanks
 
could it be that you've commented out all of the code?

and are left with

Code:
#region Garbage

#endregion
}

this is eaither a massive problem.
or you missed out a lot of code

I assume because of the last curled bracket that there is actually more code that you've cropped?
 
Back
Top Bottom