I have a small form, which comes up when I press a button in a Windows Forms application.
I want to be able to close the form by pressing the escape key. How could I do t
Button cancelBTN = new Button(); cancelBTN.Size = new Size(0, 0); cancelBTN.TabStop = false; this.Controls.Add(cancelBTN); this.CancelButton = cancelBTN;