//private void Form1_KeyPress(object sender, KeyPressEventArgs e) //{ // if (e.KeyChar == Keys.Enter) // { // this.Visible = true; // } //} //public static void Window_KeyDown(object sender, KeyEventArgs e) //{ // if (e.Control && e.KeyCode == Keys.D1) // { // string response = ShowDialog("Password Required: ", "Password"); // if (response.Equals("##########")) // { // Form1 F = new Form1(); // F.Show(); // } // } //} //protected override bool ProcessCmdKey(ref Message message, Keys keys) //{ // if (e.Control && e.KeyCode == Keys.D1) // { // string response = ShowDialog("Password Required: ", "Password"); // if (response.Equals("######")) // { // Form1 F = new Form1(); // F.Show(); // } // } // return false; // } // return false; //}
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)