Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / TabControlCancelEvent.cs / 1305376 / TabControlCancelEvent.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 TabControlCancelEventArgs : CancelEventArgs {
private TabPage tabPage;
private int tabPageIndex;
private TabControlAction action;
///
public TabControlCancelEventArgs(TabPage tabPage, int tabPageIndex, bool cancel, TabControlAction action)
: base(cancel) {
this.tabPage = tabPage;
this.tabPageIndex = tabPageIndex;
this.action = action;
}
///
///
///
/// Stores the referemce to the tabpage that is undergoing the TabControl event.
///
///
///
public TabPage TabPage {
get {
return tabPage;
}
}
///
///
///
/// Stores the index to the tabpage that is undergoing the TabControl event.
///
///
///
public int TabPageIndex {
get {
return tabPageIndex;
}
}
///
///
///
/// Stores the TabControl action which instigated the TabControl event.
///
///
///
public TabControlAction Action {
get {
return action;
}
}
}
}
// 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 TabControlCancelEventArgs : CancelEventArgs {
private TabPage tabPage;
private int tabPageIndex;
private TabControlAction action;
///
public TabControlCancelEventArgs(TabPage tabPage, int tabPageIndex, bool cancel, TabControlAction action)
: base(cancel) {
this.tabPage = tabPage;
this.tabPageIndex = tabPageIndex;
this.action = action;
}
///
///
///
/// Stores the referemce to the tabpage that is undergoing the TabControl event.
///
///
///
public TabPage TabPage {
get {
return tabPage;
}
}
///
///
///
/// Stores the index to the tabpage that is undergoing the TabControl event.
///
///
///
public int TabPageIndex {
get {
return tabPageIndex;
}
}
///
///
///
/// Stores the TabControl action which instigated the TabControl event.
///
///
///
public TabControlAction Action {
get {
return action;
}
}
}
}
// 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
- SHA384.cs
- FontClient.cs
- XmlArrayAttribute.cs
- XamlFilter.cs
- MimeReturn.cs
- Cloud.cs
- HtmlInputButton.cs
- DuplicateContext.cs
- HyperLinkField.cs
- EdmType.cs
- DbProviderManifest.cs
- TextEndOfParagraph.cs
- FixedTextSelectionProcessor.cs
- TargetInvocationException.cs
- UniformGrid.cs
- SerializationSectionGroup.cs
- UpdatableWrapper.cs
- Thumb.cs
- TdsParserSafeHandles.cs
- TypeNameConverter.cs
- LateBoundBitmapDecoder.cs
- SchemeSettingElementCollection.cs
- AsyncCompletedEventArgs.cs
- SchemaMerger.cs
- LocalizableAttribute.cs
- CoreSwitches.cs
- PathFigureCollectionValueSerializer.cs
- PublisherMembershipCondition.cs
- XmlCharacterData.cs
- X509Certificate.cs
- DeviceOverridableAttribute.cs
- Cursor.cs
- DataGridRow.cs
- SqlWebEventProvider.cs
- X509CertificateCollection.cs
- EntityDataSourceViewSchema.cs
- WindowsSysHeader.cs
- COM2PictureConverter.cs
- FormatConvertedBitmap.cs
- XmlCollation.cs
- XmlSerializerNamespaces.cs
- SamlAttributeStatement.cs
- PropertyItem.cs
- MenuItemStyleCollection.cs
- SecurityPermission.cs
- DictionaryEntry.cs
- PEFileReader.cs
- LayoutEngine.cs
- MgmtConfigurationRecord.cs
- WebPartsSection.cs
- ContentValidator.cs
- Point.cs
- ExclusiveTcpTransportManager.cs
- ClientUtils.cs
- MulticastNotSupportedException.cs
- XsdDateTime.cs
- InternalConfigSettingsFactory.cs
- GatewayIPAddressInformationCollection.cs
- PixelFormat.cs
- SerializerWriterEventHandlers.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- RawStylusSystemGestureInputReport.cs
- PasswordRecovery.cs
- ConfigXmlComment.cs
- ClientTargetCollection.cs
- RadialGradientBrush.cs
- TextViewDesigner.cs
- OutOfProcStateClientManager.cs
- BaseEntityWrapper.cs
- WebPartConnectionsConnectVerb.cs
- SectionRecord.cs
- NullReferenceException.cs
- IgnoreSection.cs
- CookielessData.cs
- MSG.cs
- ColorTransform.cs
- TransformProviderWrapper.cs
- InvalidPropValue.cs
- WorkflowNamespace.cs
- ClassHandlersStore.cs
- DateTimeSerializationSection.cs
- GeneralTransform2DTo3DTo2D.cs
- BeginEvent.cs
- _NtlmClient.cs
- TextEncodedRawTextWriter.cs
- ClientBuildManager.cs
- ZeroOpNode.cs
- Int32CollectionConverter.cs
- Cursor.cs
- TrackingMemoryStream.cs
- StringInfo.cs
- newitemfactory.cs
- GcSettings.cs
- PieceDirectory.cs
- DataListItemEventArgs.cs
- InlinedAggregationOperator.cs
- COMException.cs
- Win32MouseDevice.cs
- SurrogateChar.cs
- WaitHandle.cs