Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / WinForms / Managed / System / WinForms / FormClosingEvent.cs / 1 / 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
- RemoteEndpointMessageProperty.cs
- XmlSiteMapProvider.cs
- UnknownBitmapDecoder.cs
- hresults.cs
- XmlAttribute.cs
- PhysicalFontFamily.cs
- BoolLiteral.cs
- EntityKey.cs
- PathStreamGeometryContext.cs
- Highlights.cs
- DiscoveryClientOutputChannel.cs
- CodeBinaryOperatorExpression.cs
- FontConverter.cs
- RefType.cs
- NativeWindow.cs
- DesignerAutoFormatCollection.cs
- Source.cs
- Pkcs7Recipient.cs
- TrackBar.cs
- FamilyMapCollection.cs
- FileStream.cs
- PolyBezierSegment.cs
- InternalBufferOverflowException.cs
- Columns.cs
- PingOptions.cs
- XamlPointCollectionSerializer.cs
- PropertyItem.cs
- StickyNoteHelper.cs
- XmlSchemaNotation.cs
- Vector3DValueSerializer.cs
- ClassicBorderDecorator.cs
- SizeAnimationClockResource.cs
- VectorAnimation.cs
- OptimalTextSource.cs
- ConsumerConnectionPoint.cs
- PointCollection.cs
- XmlDataCollection.cs
- DataSourceControl.cs
- COM2EnumConverter.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- TextDecorationCollectionConverter.cs
- DeviceContexts.cs
- Dump.cs
- Light.cs
- DefaultMemberAttribute.cs
- TextEncodedRawTextWriter.cs
- DataControlFieldCell.cs
- MsmqIntegrationMessagePool.cs
- FlowDocumentFormatter.cs
- UInt16Converter.cs
- ItemTypeToolStripMenuItem.cs
- BamlLocalizableResourceKey.cs
- HttpServerVarsCollection.cs
- FillBehavior.cs
- Margins.cs
- TextModifier.cs
- SvcFileManager.cs
- MaterialGroup.cs
- StyleSelector.cs
- TileBrush.cs
- CompressedStack.cs
- FontSizeConverter.cs
- ValidationError.cs
- odbcmetadatacolumnnames.cs
- ButtonField.cs
- Invariant.cs
- SslStream.cs
- ChannelSinkStacks.cs
- ManipulationDevice.cs
- Component.cs
- ContainerSelectorBehavior.cs
- EntityDataReader.cs
- EpmSyndicationContentSerializer.cs
- PrintPreviewDialog.cs
- TextRunProperties.cs
- XmlDictionaryString.cs
- ApplySecurityAndSendAsyncResult.cs
- StaticFileHandler.cs
- UnsafeNativeMethods.cs
- LayoutInformation.cs
- ConsoleKeyInfo.cs
- SchemaImporter.cs
- WebPartZoneBase.cs
- ResourceSet.cs
- Floater.cs
- X509ThumbprintKeyIdentifierClause.cs
- CodeTypeReference.cs
- MetafileHeaderWmf.cs
- WebFormDesignerActionService.cs
- HttpConfigurationContext.cs
- xdrvalidator.cs
- RijndaelCryptoServiceProvider.cs
- ConstraintStruct.cs
- DataGridViewComponentPropertyGridSite.cs
- ByteBufferPool.cs
- ItemMap.cs
- versioninfo.cs
- Rijndael.cs
- TabControlAutomationPeer.cs
- DispatcherExceptionFilterEventArgs.cs