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
- ReturnValue.cs
- CTreeGenerator.cs
- StylusPointPropertyId.cs
- NotificationContext.cs
- XmlAttribute.cs
- Point3D.cs
- TraceSection.cs
- DispatcherBuilder.cs
- SoapFault.cs
- EncoderNLS.cs
- BrowserCapabilitiesCompiler.cs
- PageEventArgs.cs
- RuntimeArgumentHandle.cs
- Stack.cs
- SmtpLoginAuthenticationModule.cs
- BindingSource.cs
- MetadataArtifactLoaderCompositeFile.cs
- TraceProvider.cs
- DispatcherHookEventArgs.cs
- CopyAttributesAction.cs
- InvalidOperationException.cs
- XamlToRtfWriter.cs
- CapabilitiesAssignment.cs
- AdapterDictionary.cs
- MenuEventArgs.cs
- LinqDataView.cs
- UpDownEvent.cs
- WrapPanel.cs
- AsyncCallback.cs
- DynamicValueConverter.cs
- SynchronizationLockException.cs
- PropertyGridCommands.cs
- FixedPageAutomationPeer.cs
- CompositeScriptReferenceEventArgs.cs
- SelectionRange.cs
- MetadataWorkspace.cs
- ReadOnlyMetadataCollection.cs
- Visual3D.cs
- UIElementParagraph.cs
- _LazyAsyncResult.cs
- WindowInteractionStateTracker.cs
- CheckBoxStandardAdapter.cs
- StructuredTypeEmitter.cs
- SecurityContextSecurityTokenResolver.cs
- WebPartConnectVerb.cs
- MaskedTextProvider.cs
- DecoderReplacementFallback.cs
- ComponentResourceKey.cs
- OracleMonthSpan.cs
- SqlRecordBuffer.cs
- SqlTypeConverter.cs
- MSAAWinEventWrap.cs
- TrustManagerMoreInformation.cs
- SqlDataSourceView.cs
- TaskbarItemInfo.cs
- CodeDomLocalizationProvider.cs
- SoapSchemaExporter.cs
- InputLangChangeEvent.cs
- DataControlFieldHeaderCell.cs
- RegexCode.cs
- ScriptControl.cs
- TileModeValidation.cs
- UrlMappingsSection.cs
- TraceListener.cs
- WriteableBitmap.cs
- DateTimeFormatInfoScanner.cs
- FunctionNode.cs
- ReferenceEqualityComparer.cs
- XmlObjectSerializer.cs
- VerificationAttribute.cs
- SqlConnectionString.cs
- DerivedKeySecurityTokenStub.cs
- ValueSerializer.cs
- NamespaceList.cs
- RemoveStoryboard.cs
- SqlDataSourceCommandEventArgs.cs
- RtType.cs
- WsdlHelpGeneratorElement.cs
- StringResourceManager.cs
- StrokeNodeOperations.cs
- VBCodeProvider.cs
- MulticastNotSupportedException.cs
- odbcmetadatafactory.cs
- SourceFileBuildProvider.cs
- TreeBuilder.cs
- PropertyEntry.cs
- PageBreakRecord.cs
- JobInputBins.cs
- Rijndael.cs
- Pens.cs
- ConnectionPoolManager.cs
- MembershipValidatePasswordEventArgs.cs
- TextBoxAutomationPeer.cs
- ResourcePermissionBaseEntry.cs
- OleDbPermission.cs
- DataGridViewTopRowAccessibleObject.cs
- XmlCustomFormatter.cs
- ConstructorArgumentAttribute.cs
- Win32.cs
- ActivationServices.cs