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
- TreeIterator.cs
- RouteItem.cs
- StringConcat.cs
- RuntimeResourceSet.cs
- SecureStringHasher.cs
- ServiceDebugBehavior.cs
- SerialPort.cs
- DbDataRecord.cs
- CodeGenerator.cs
- ChangeNode.cs
- ImageSourceConverter.cs
- DocumentXPathNavigator.cs
- IProvider.cs
- StaticFileHandler.cs
- MonthChangedEventArgs.cs
- SQLInt32Storage.cs
- JsonQNameDataContract.cs
- UpdatePanelTriggerCollection.cs
- AlignmentXValidation.cs
- SelectionItemPatternIdentifiers.cs
- UnionCodeGroup.cs
- XmlTextReaderImplHelpers.cs
- Visual.cs
- DefaultMemberAttribute.cs
- PrintDialogDesigner.cs
- COAUTHIDENTITY.cs
- listitem.cs
- TextParagraphProperties.cs
- UInt16.cs
- ImmutableClientRuntime.cs
- DatagramAdapter.cs
- DataGridViewRowCancelEventArgs.cs
- TraceContextRecord.cs
- Schedule.cs
- SizeChangedInfo.cs
- COM2FontConverter.cs
- TablePattern.cs
- Invariant.cs
- DescriptionAttribute.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- ToolStripButton.cs
- DataFieldCollectionEditor.cs
- RankException.cs
- DisposableCollectionWrapper.cs
- TextBox.cs
- DataTableTypeConverter.cs
- GroupBox.cs
- PanelStyle.cs
- ResourceExpression.cs
- LockCookie.cs
- ContentElement.cs
- SecurityContextKeyIdentifierClause.cs
- ScanQueryOperator.cs
- Point3DCollectionConverter.cs
- TrackingAnnotationCollection.cs
- MembershipSection.cs
- PaperSize.cs
- TriggerAction.cs
- LoaderAllocator.cs
- ModuleElement.cs
- BackgroundFormatInfo.cs
- ControlUtil.cs
- ContentDefinition.cs
- DataListItem.cs
- BindableTemplateBuilder.cs
- WebConfigManager.cs
- SortAction.cs
- ColorContextHelper.cs
- ControlBuilderAttribute.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- Substitution.cs
- PointLightBase.cs
- GraphicsState.cs
- ConditionCollection.cs
- OdbcConnectionFactory.cs
- AttributeQuery.cs
- Utils.cs
- NativeMethods.cs
- LongMinMaxAggregationOperator.cs
- Schema.cs
- ColorContext.cs
- AuthenticatingEventArgs.cs
- _LocalDataStoreMgr.cs
- SqlDataReader.cs
- TextRangeAdaptor.cs
- ExpressionBuilderContext.cs
- RegexBoyerMoore.cs
- RewritingSimplifier.cs
- CroppedBitmap.cs
- AnimationTimeline.cs
- SQLResource.cs
- EqualityComparer.cs
- ErrorWebPart.cs
- DesignParameter.cs
- PowerModeChangedEventArgs.cs
- WebPartCollection.cs
- WebHttpSecurityModeHelper.cs
- AttributeCollection.cs
- EncodingFallbackAwareXmlTextWriter.cs
- ItemContainerPattern.cs