Search code examples
c#visual-studio-2010acceptbutton

AcceptButton and CancelButton for Visual Studio 2010


Where are the Form Properties for the AcceptButton and CancelButton for Visual Studio 2010? I'd like to set my btnClose as CancelButton and I'd like to set my btnEnter as my AcceptButton.


Solution

  • The properties you are talking about are AcceptButton and CancelButton on the Form.

    Make sure you select the Form in the form designer, and then look in the property panel.

    Cheers