Hello, Paul and Alessandro
Closing an application in the .NET CF is actually pretty
easy, though as Paul mentioned, it will not be PPC logo
compliant.
As Neil stated in his message, you need to set the
MinimizeBox of your form to false. Then, to handle things
when the OK button is tapped, you will need to override
the OnClosingt even of the form.
ex: (VB)
Protected Overrides Sub OnClosing(ByVal e As
System.ComponentModel.CancelEventsArgs)
Dim result As System.Windows.Forms.DialogResult
MessageBox.Show("Exit Application?", "Exit",
MessageBoxButtons.YesNo, MessageBoxIcon.Question,
MessageBoxDefaultButton.Button2)
If result = DialogResult.Yes Then
' Handle shutdown operations
End If
End Sub
C# code would be similar.
Hope that helps
Flynn