Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / FormClosingEvent.cs / 1305376 / FormClosingEvent.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Windows.Forms {
using System.Diagnostics;
using System;
using System.ComponentModel;
using System.Drawing;
using Microsoft.Win32;
///
///
///
/// Provides data for the ,
///
/// event.
///
///
public class FormClosingEventArgs : CancelEventArgs {
private CloseReason closeReason;
///
public FormClosingEventArgs(CloseReason closeReason, bool cancel)
: base(cancel) {
this.closeReason = closeReason;
}
///
///
///
/// Provides the reason for the Form close.
///
///
public CloseReason CloseReason {
get {
return closeReason;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Windows.Forms {
using System.Diagnostics;
using System;
using System.ComponentModel;
using System.Drawing;
using Microsoft.Win32;
///
///
///
/// Provides data for the ,
///
/// event.
///
///
public class FormClosingEventArgs : CancelEventArgs {
private CloseReason closeReason;
///
public FormClosingEventArgs(CloseReason closeReason, bool cancel)
: base(cancel) {
this.closeReason = closeReason;
}
///
///
///
/// Provides the reason for the Form close.
///
///
public CloseReason CloseReason {
get {
return closeReason;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataServiceRequestOfT.cs
- LoginView.cs
- StylusPointPropertyUnit.cs
- QuaternionConverter.cs
- Soap.cs
- ImageInfo.cs
- TagMapInfo.cs
- SystemResources.cs
- HttpWebRequest.cs
- COM2EnumConverter.cs
- FreezableDefaultValueFactory.cs
- Popup.cs
- GlobalAclOperationRequirement.cs
- PersonalizationDictionary.cs
- IChannel.cs
- ContainerActivationHelper.cs
- COM2PropertyDescriptor.cs
- CatalogPartChrome.cs
- XmlComment.cs
- BrowsableAttribute.cs
- RegularExpressionValidator.cs
- SizeFConverter.cs
- DragStartedEventArgs.cs
- CacheRequest.cs
- ToolStripComboBox.cs
- ConfigXmlAttribute.cs
- KernelTypeValidation.cs
- WindowsListViewScroll.cs
- ControlCachePolicy.cs
- StringWriter.cs
- SecurityListenerSettingsLifetimeManager.cs
- HtmlInputText.cs
- HttpCookieCollection.cs
- XmlSchemaSimpleTypeUnion.cs
- AuthenticateEventArgs.cs
- Single.cs
- TemplateEditingVerb.cs
- TextFragmentEngine.cs
- XmlEnumAttribute.cs
- RegistryKey.cs
- DBAsyncResult.cs
- SqlAliaser.cs
- PrefixQName.cs
- QueryConverter.cs
- AbsoluteQuery.cs
- ValidateNames.cs
- XmlProcessingInstruction.cs
- DataKeyCollection.cs
- TransformerInfo.cs
- LocatorPartList.cs
- PropertyGridCommands.cs
- ValueProviderWrapper.cs
- TextChange.cs
- Convert.cs
- Camera.cs
- RC2.cs
- StorageAssociationSetMapping.cs
- RuntimeCompatibilityAttribute.cs
- TargetInvocationException.cs
- BufferedStream.cs
- TransactedReceiveData.cs
- HttpCacheParams.cs
- EntityTransaction.cs
- DesignerActionItem.cs
- Facet.cs
- DeadCharTextComposition.cs
- AliasedExpr.cs
- BindingContext.cs
- ObjectListField.cs
- PartialCachingControl.cs
- InternalsVisibleToAttribute.cs
- D3DImage.cs
- AttachInfo.cs
- PackWebResponse.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- TemplatingOptionsDialog.cs
- LinkedResource.cs
- ClientRolePrincipal.cs
- TaskbarItemInfo.cs
- FilteredDataSetHelper.cs
- TreeViewImageIndexConverter.cs
- EntityDataSourceContainerNameConverter.cs
- SvcMapFile.cs
- EventDescriptorCollection.cs
- Attachment.cs
- BitmapScalingModeValidation.cs
- QueryReaderSettings.cs
- XmlToDatasetMap.cs
- SiteIdentityPermission.cs
- ellipse.cs
- TableLayoutSettings.cs
- XamlClipboardData.cs
- GAC.cs
- SplayTreeNode.cs
- FamilyTypefaceCollection.cs
- ChildrenQuery.cs
- WindowsListViewItem.cs
- HttpCacheVaryByContentEncodings.cs
- Base64Encoding.cs
- PLINQETWProvider.cs