Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / WinForms / Managed / System / WinForms / TabControlCancelEvent.cs / 1 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SmtpReplyReader.cs
- PenLineJoinValidation.cs
- CopyNodeSetAction.cs
- InternalTypeHelper.cs
- XmlChildNodes.cs
- PropertyGeneratedEventArgs.cs
- IndexOutOfRangeException.cs
- CustomWebEventKey.cs
- DataGridViewCellValidatingEventArgs.cs
- SymmetricAlgorithm.cs
- XamlReader.cs
- CollectionType.cs
- ProtocolInformationReader.cs
- UserControl.cs
- BrowserCapabilitiesFactory.cs
- Rect.cs
- ProgressPage.cs
- ZoneLinkButton.cs
- EnumerableRowCollection.cs
- HandleRef.cs
- WebPartEditorApplyVerb.cs
- StatusBarItem.cs
- SecureUICommand.cs
- ControlBuilderAttribute.cs
- Calendar.cs
- ResourceAttributes.cs
- InstanceDataCollection.cs
- ReadOnlyActivityGlyph.cs
- CreateSequenceResponse.cs
- DataBindingHandlerAttribute.cs
- PreviewPageInfo.cs
- ProviderConnectionPointCollection.cs
- StatusBarDrawItemEvent.cs
- XPathDocumentIterator.cs
- userdatakeys.cs
- SiteIdentityPermission.cs
- MobileControlsSectionHelper.cs
- ClientRuntimeConfig.cs
- _LocalDataStoreMgr.cs
- TrueReadOnlyCollection.cs
- DropDownList.cs
- DispatcherOperation.cs
- XmlSerializationReader.cs
- ToggleButton.cs
- ResourceCategoryAttribute.cs
- ArithmeticException.cs
- OdbcRowUpdatingEvent.cs
- StatusBarPanelClickEvent.cs
- XamlTreeBuilderBamlRecordWriter.cs
- QueryAccessibilityHelpEvent.cs
- MemberHolder.cs
- FullTrustAssembly.cs
- ActivationServices.cs
- TrackingDataItem.cs
- AsymmetricKeyExchangeDeformatter.cs
- MetadataCache.cs
- DataGridViewHeaderCell.cs
- XmlWriter.cs
- StylusButtonCollection.cs
- SiblingIterators.cs
- SQLString.cs
- RemoteWebConfigurationHost.cs
- ImportContext.cs
- CodeExporter.cs
- SHA512.cs
- ConcurrentDictionary.cs
- SimpleNameService.cs
- DataGridViewRowConverter.cs
- CfgSemanticTag.cs
- LinkTarget.cs
- Stackframe.cs
- DataServiceConfiguration.cs
- InvalidOleVariantTypeException.cs
- WindowsEditBox.cs
- PictureBox.cs
- GetPageNumberCompletedEventArgs.cs
- RelationshipType.cs
- DEREncoding.cs
- IgnoreDataMemberAttribute.cs
- SyndicationFeed.cs
- SqlFactory.cs
- RangeBaseAutomationPeer.cs
- FrameworkElement.cs
- DesignColumn.cs
- NetworkStream.cs
- FileAuthorizationModule.cs
- TextDecorationCollection.cs
- XamlRtfConverter.cs
- ObjectMemberMapping.cs
- LicenseManager.cs
- DiscriminatorMap.cs
- Command.cs
- Utils.cs
- TransportListener.cs
- ConstructorNeedsTagAttribute.cs
- AppearanceEditorPart.cs
- MachineSettingsSection.cs
- TextSelectionHelper.cs
- X509Chain.cs
- SqlStream.cs