Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataGridViewHitTestInfo.cs
- WorkflowEventArgs.cs
- OperandQuery.cs
- StringConverter.cs
- DirectoryRootQuery.cs
- HtmlShimManager.cs
- DesignerSerializerAttribute.cs
- DbSetClause.cs
- ListSourceHelper.cs
- TypeUtils.cs
- LinkLabelLinkClickedEvent.cs
- AuthorizationSection.cs
- COM2ExtendedTypeConverter.cs
- WebPartTransformer.cs
- DbConnectionPoolIdentity.cs
- ConnectionPointCookie.cs
- BigInt.cs
- HighContrastHelper.cs
- CompiledRegexRunnerFactory.cs
- FilteredAttributeCollection.cs
- MediaTimeline.cs
- SharedPersonalizationStateInfo.cs
- SecurityDocument.cs
- DataControlReferenceCollection.cs
- RangeBaseAutomationPeer.cs
- RightNameExpirationInfoPair.cs
- DurationConverter.cs
- MethodSignatureGenerator.cs
- AnimatedTypeHelpers.cs
- ControlParameter.cs
- TTSEvent.cs
- EntitySet.cs
- UInt16.cs
- DES.cs
- BreakRecordTable.cs
- HttpWriter.cs
- ColumnPropertiesGroup.cs
- SequentialWorkflowRootDesigner.cs
- ExternalFile.cs
- AdornedElementPlaceholder.cs
- SqlClientMetaDataCollectionNames.cs
- Helper.cs
- FrameSecurityDescriptor.cs
- AssemblyInfo.cs
- ConnectionProviderAttribute.cs
- TreeWalker.cs
- PerformanceCounterCategory.cs
- ResourcesChangeInfo.cs
- Accessors.cs
- WebPartDescriptionCollection.cs
- DbCommandTree.cs
- FusionWrap.cs
- CipherData.cs
- IsolatedStorageFile.cs
- ScrollBar.cs
- CollectionTypeElement.cs
- EndPoint.cs
- DeviceContext.cs
- RuntimeConfigurationRecord.cs
- TcpServerChannel.cs
- RoutedCommand.cs
- IncrementalHitTester.cs
- Compilation.cs
- ExpandedWrapper.cs
- TrackBar.cs
- VBIdentifierTrimConverter.cs
- XmlParserContext.cs
- CreateWorkflowOwnerCommand.cs
- UrlAuthorizationModule.cs
- SettingsBase.cs
- EventLog.cs
- SystemColors.cs
- BaseTreeIterator.cs
- SemanticResultValue.cs
- DBCSCodePageEncoding.cs
- ButtonBase.cs
- CFStream.cs
- OdbcFactory.cs
- XPathDescendantIterator.cs
- RectangleGeometry.cs
- InlineObject.cs
- InstancePersistenceCommand.cs
- TextTreeRootTextBlock.cs
- StrokeFIndices.cs
- FixedSOMTable.cs
- ListViewEditEventArgs.cs
- DataBindingExpressionBuilder.cs
- RemotingAttributes.cs
- PaintValueEventArgs.cs
- DataListItem.cs
- SafeCryptContextHandle.cs
- SafeMemoryMappedViewHandle.cs
- ZipPackage.cs
- TextBox.cs
- SQLInt32.cs
- DataServiceResponse.cs
- Stylus.cs
- MeshGeometry3D.cs
- PrimitiveXmlSerializers.cs
- ContextMenu.cs