Occurs when a user clicks the Cancel button.
| [Visual Basic .NET] |
|---|
Public Sub OnCancel() |
| [C#] |
|---|
public void OnCancel(); |
| [Managed C++] |
|---|
public: void OnCancel(); |
| [Unmanaged C++] |
|---|
public: HRESULT OnCancel(); |
| [Java] |
|---|
public void onCancel(); |
OnCancel method is called by the hosting environment when user clicks on "Cancel" button on the "Preferences" property sheet.





