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
- ColorContext.cs
- DataGridViewCellCancelEventArgs.cs
- ClientCultureInfo.cs
- DataGridItem.cs
- DbProviderFactoriesConfigurationHandler.cs
- FixedSOMGroup.cs
- PassportAuthenticationEventArgs.cs
- ComboBoxHelper.cs
- WmlMobileTextWriter.cs
- DbBuffer.cs
- RecordsAffectedEventArgs.cs
- ListDictionaryInternal.cs
- RequestCacheManager.cs
- Stack.cs
- ByteStorage.cs
- MethodBuilderInstantiation.cs
- HtmlImage.cs
- basenumberconverter.cs
- EdmMember.cs
- MenuItemStyle.cs
- SlipBehavior.cs
- TransactionTable.cs
- OdbcDataAdapter.cs
- ActivityDefaults.cs
- loginstatus.cs
- IgnoreSectionHandler.cs
- SystemTcpConnection.cs
- DataSourceExpression.cs
- TextFormatterContext.cs
- XomlSerializationHelpers.cs
- LifetimeMonitor.cs
- WS2007HttpBindingCollectionElement.cs
- ScrollBarRenderer.cs
- ManagementException.cs
- IncrementalCompileAnalyzer.cs
- ImageCodecInfo.cs
- InvalidPrinterException.cs
- ThemeDirectoryCompiler.cs
- DropTarget.cs
- XNodeValidator.cs
- ResourceContainer.cs
- Permission.cs
- BitmapEffectDrawingContextState.cs
- Grid.cs
- DataServiceResponse.cs
- RoutingBehavior.cs
- Source.cs
- Literal.cs
- AnnotationResource.cs
- EventHandlerList.cs
- PropertyEntry.cs
- FontStretches.cs
- UrlMappingCollection.cs
- SourceElementsCollection.cs
- BamlStream.cs
- BlurEffect.cs
- DataControlField.cs
- WindowsContainer.cs
- WebPartDeleteVerb.cs
- NetSectionGroup.cs
- XPathNodeInfoAtom.cs
- TextBox.cs
- FrameworkContentElement.cs
- altserialization.cs
- FilterElement.cs
- KoreanCalendar.cs
- BitmapSourceSafeMILHandle.cs
- XmlSerializerFactory.cs
- LinqDataSourceUpdateEventArgs.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- ModuleBuilder.cs
- ExpressionWriter.cs
- PropertyGeneratedEventArgs.cs
- WarningException.cs
- UserMapPath.cs
- ColumnReorderedEventArgs.cs
- AsyncPostBackTrigger.cs
- StateMachineExecutionState.cs
- SqlBuilder.cs
- BitmapEffectGroup.cs
- ProtectedProviderSettings.cs
- SapiRecoContext.cs
- KeyPressEvent.cs
- PropertyEmitterBase.cs
- PopupRoot.cs
- SingleAnimationUsingKeyFrames.cs
- TextChangedEventArgs.cs
- MessageLogger.cs
- ComponentDispatcherThread.cs
- SessionState.cs
- SafeThreadHandle.cs
- ExtenderControl.cs
- NamespaceCollection.cs
- NonClientArea.cs
- DocumentViewerConstants.cs
- EndpointIdentityConverter.cs
- ReferenceConverter.cs
- SqlDataSourceAdvancedOptionsForm.cs
- COM2EnumConverter.cs
- RevocationPoint.cs