private void MainForm_Load(object sender, EventArgs e) { fileCheck fc = new fileCheck(); String pas = fileCheck.AESEncrypt256(Convert.ToString(fc.getHddNum())); // String pas = "******"; // MessageBox.Show(fileCheck.AESDecrypt256(pas)); switch (fc.License(this)) { case fileCheck.checkState.Formally: demo = true; break; case fileCheck.checkState.ban: fc.showMsg(pas); Environment.Exit(Environment.ExitCode); break; case fileCheck.checkState.Demo: fc.showMsg(pas); break; } CheckForIllegalCrossThreadCalls = false; }