namespace JadeComplete
{
public partial class Form1 : Form
{
string curPass = "someDefaultPass";
public Form1()
{
string fileName1 = "authentication.txt";
if (System.IO.File.Exists(fileName1))
curPass = System.IO.File.ReadAllText(fileName1);
if (System.IO.File.ReadAllText(fileName1) == curPass)
{
Hide();
Form2 frm = new Form2();
frm.Show();
}
}
}
}
I don't know why this isn't working. I have tried multiple things but can't figure out what's wrong.
I have 2 Forms
showing when it's supposed to be removing one, the problematic area being right after public Form1()