public Form3() { InitializeComponent(); value = 0; success = false; this.KeyPreview = true; this.KeyDown += new KeyEventHandler(Form_KeyDown); }