O'Reilly logo

Microsoft® .NET Compact Framework (Core Reference) by Mark Sutton, Rory MacLoed, Robert Burbidge, Stephen Wheelwright, Andy Wigley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required