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
- LiteralText.cs
- DBConcurrencyException.cs
- CFGGrammar.cs
- SqlUtil.cs
- ObjectComplexPropertyMapping.cs
- XPathNodeInfoAtom.cs
- XmlArrayAttribute.cs
- SqlCachedBuffer.cs
- CriticalHandle.cs
- SafeMemoryMappedViewHandle.cs
- Attributes.cs
- NameTable.cs
- AdPostCacheSubstitution.cs
- DoubleLinkList.cs
- BooleanStorage.cs
- AssociatedControlConverter.cs
- HyperlinkAutomationPeer.cs
- CreatingCookieEventArgs.cs
- SafeNativeMethods.cs
- FixedStringLookup.cs
- ThemeDictionaryExtension.cs
- RemoveStoryboard.cs
- Button.cs
- HtmlElement.cs
- SystemWebCachingSectionGroup.cs
- MultiBinding.cs
- DrawingGroupDrawingContext.cs
- ResolveInfo.cs
- XDRSchema.cs
- DefaultValueTypeConverter.cs
- WebPartConnectionsDisconnectVerb.cs
- SafeLibraryHandle.cs
- MaskPropertyEditor.cs
- ValidatorUtils.cs
- safesecurityhelperavalon.cs
- SQLSingleStorage.cs
- DrawListViewColumnHeaderEventArgs.cs
- ListViewGroup.cs
- ResourcesGenerator.cs
- PageCache.cs
- WebBrowsableAttribute.cs
- ConfigXmlWhitespace.cs
- CommandBinding.cs
- NodeLabelEditEvent.cs
- SchemaElementLookUpTableEnumerator.cs
- LongValidator.cs
- ScriptResourceAttribute.cs
- ReferenceConverter.cs
- ErrorRuntimeConfig.cs
- CatalogPartCollection.cs
- Maps.cs
- securitymgrsite.cs
- SByteStorage.cs
- Invariant.cs
- ProfileService.cs
- Viewport2DVisual3D.cs
- SmtpFailedRecipientsException.cs
- TypeConvertions.cs
- ListParagraph.cs
- EmptyControlCollection.cs
- CollectionTypeElement.cs
- DesignTimeData.cs
- MasterPageParser.cs
- ReflectionServiceProvider.cs
- LowerCaseStringConverter.cs
- NotImplementedException.cs
- ServicePrincipalNameElement.cs
- DefaultValidator.cs
- validationstate.cs
- WebPartUtil.cs
- BaseTemplateParser.cs
- ScriptingWebServicesSectionGroup.cs
- TrustManager.cs
- BindingValueChangedEventArgs.cs
- IpcClientManager.cs
- BooleanConverter.cs
- PixelFormat.cs
- RecordManager.cs
- BufferedGraphics.cs
- MILUtilities.cs
- PenContexts.cs
- SQLInt64Storage.cs
- MetadataCollection.cs
- XmlILModule.cs
- BitmapFrameEncode.cs
- DataGridViewRowCancelEventArgs.cs
- IssuanceLicense.cs
- SmtpNtlmAuthenticationModule.cs
- ArithmeticException.cs
- ScriptServiceAttribute.cs
- ComplexPropertyEntry.cs
- ZipIOLocalFileBlock.cs
- XmlAnyElementAttribute.cs
- MembershipAdapter.cs
- LoadRetryStrategyFactory.cs
- TdsParserStateObject.cs
- validationstate.cs
- TextFormatterHost.cs
- CustomError.cs
- DbConnectionFactory.cs