1) I built and application that I called contact here is the script for it
the goal is to set the entry point in the secend class I created but instead C# gives me and error that there is no entry point and it is not recognizing the entry point I am creating. what could I be possibly be doing wrong
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace Contacts
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void NotMain()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
2) then the book that I am using to teach my self C# asked me to create a new class and set the 1st entry to NotMain and create a main point on the new class that called Another class and here is the script for it
using System.Windows.Forms;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Contacts
{
class AnotherClass
{
public static void main()
{
MessageBox.Show("Pow!");
}
}
}
Comment