1
Answer

Windows Form, Main.cs, and User class

Kasey

Kasey

14y
2.7k
1
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)