1
Answer

Default and Cancel actions/buttons on a .NET Windows Form

Brian Lees

Brian Lees

17y
2.6k
1

I come to C# & Windows Forms programming from VB6, where it was easy to make a form respond predictably to the Enter and Escape keys using two (hidden?) buttons that have their Default and Cancel properties respectively set to True.

How do I do this in Windows Forms? Help, please!

Answers (1)