Comparing Forms Behavior in the .NET Framework and the .NET Compact Framework
Apart from the Maximize and Minimize buttons, there are some other specific differences between the behaviors of Windows Forms in the .NET Framework compared to those in the .NET Compact Framework. These differences are summarized in the following sections.
AcceptButton and CancelButton
Forms in the .NET Compact Framework don’t support the AcceptButton and CancelButton properties. A desktop Windows application interprets pressing the Enter key as being equivalent to clicking the button that the AcceptButton property references; the application executes the button’s Click event handler. Typically, you would set the AcceptButton property to reference the OK button of a dialog-box ...
Get Microsoft® .NET Compact Framework (Core Reference) now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.