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
- Parsers.cs
- _NegotiateClient.cs
- Hyperlink.cs
- DataGridrowEditEndingEventArgs.cs
- EntityClassGenerator.cs
- MetadataUtilsSmi.cs
- XmlTextReaderImpl.cs
- HostUtils.cs
- SmiTypedGetterSetter.cs
- WebPartZoneDesigner.cs
- LayoutEngine.cs
- AdjustableArrowCap.cs
- StackOverflowException.cs
- SQLBinary.cs
- CacheChildrenQuery.cs
- Control.cs
- MethodImplAttribute.cs
- CustomExpression.cs
- TypeInitializationException.cs
- XpsSerializationManagerAsync.cs
- ImageMap.cs
- WsdlBuildProvider.cs
- XhtmlBasicCommandAdapter.cs
- SafeBitVector32.cs
- CodeIterationStatement.cs
- QueryCacheEntry.cs
- SymLanguageVendor.cs
- XmlNamespaceMapping.cs
- CompositeCollection.cs
- XmlILOptimizerVisitor.cs
- ISessionStateStore.cs
- TimeSpanConverter.cs
- UpdateCommandGenerator.cs
- SafeHandle.cs
- JapaneseLunisolarCalendar.cs
- DataGridViewCellLinkedList.cs
- KnownTypeHelper.cs
- BinaryObjectWriter.cs
- Button.cs
- ListViewPagedDataSource.cs
- Button.cs
- ReflectEventDescriptor.cs
- DataGridViewBand.cs
- Helper.cs
- KnownBoxes.cs
- DSASignatureDeformatter.cs
- WebUtil.cs
- IListConverters.cs
- nulltextnavigator.cs
- ExpressionEditorAttribute.cs
- ObjectPropertyMapping.cs
- LinkGrep.cs
- GACMembershipCondition.cs
- QilTernary.cs
- ShimAsPublicXamlType.cs
- TextEditorParagraphs.cs
- SingleObjectCollection.cs
- RtfToken.cs
- PtsHelper.cs
- RuntimeCompatibilityAttribute.cs
- ServiceTimeoutsElement.cs
- DirectoryObjectSecurity.cs
- DataGridViewColumnStateChangedEventArgs.cs
- PictureBox.cs
- DataGridViewCheckBoxCell.cs
- VersionedStreamOwner.cs
- LayoutEditorPart.cs
- BitmapData.cs
- CodeExpressionStatement.cs
- QilTargetType.cs
- ICollection.cs
- Rect3D.cs
- ConversionContext.cs
- BasicHttpSecurityMode.cs
- AttributeData.cs
- StyleTypedPropertyAttribute.cs
- VirtualDirectoryMapping.cs
- BaseDataBoundControl.cs
- WebPartHelpVerb.cs
- FastPropertyAccessor.cs
- OperatingSystemVersionCheck.cs
- VariableExpressionConverter.cs
- sqlnorm.cs
- FixUp.cs
- BitmapEffectDrawing.cs
- IisTraceListener.cs
- BuildProviderCollection.cs
- Perspective.cs
- DbXmlEnabledProviderManifest.cs
- SiteMembershipCondition.cs
- DirectionalLight.cs
- SimpleTypeResolver.cs
- Rect3DValueSerializer.cs
- DefaultValidator.cs
- TextParagraph.cs
- securitymgrsite.cs
- PropertyDescriptor.cs
- BitmapData.cs
- IntSecurity.cs
- AutomationElementCollection.cs