Kasey

Kasey

  • NA
  • 1
  • 0

Windows Form, Main.cs, and User class

Mar 16 2010 6:08 PM
My current problem is that I am receiving the error:

 Error	1	Inconsistent accessibility: parameter type 'Liquid_User.User' is less accessible than method 'Liquid_User.LoginForm.LoginForm(Liquid_User.User)'	LoginForm.cs	17	16	Liquid-User


What I am trying to do is this...

         public static User Current;         
[STAThread]

static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new LoginForm(Current));

}

I have a constructor for LoginForm:

        static User current;
public LoginForm(User Current)
{
current = Current;
InitializeComponent();
MySqlConnection mysqlCon = new MySqlConnection(strProvider);
mysqlCon.Open();
}


Any idea why it isn't working?

Answers (1)