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
- ADConnectionHelper.cs
- EdmScalarPropertyAttribute.cs
- DBSqlParserTable.cs
- MatrixTransform3D.cs
- TableCellAutomationPeer.cs
- PropertyValueUIItem.cs
- LayoutEngine.cs
- BCLDebug.cs
- SqlReferenceCollection.cs
- WinInetCache.cs
- _RequestCacheProtocol.cs
- Vector3DValueSerializer.cs
- TextServicesManager.cs
- MaskInputRejectedEventArgs.cs
- InfoCardClaimCollection.cs
- _NegotiateClient.cs
- SpellerStatusTable.cs
- RotateTransform.cs
- GenericTypeParameterBuilder.cs
- MonthCalendar.cs
- DateTimeConstantAttribute.cs
- PartialList.cs
- MarshalDirectiveException.cs
- InvokeHandlers.cs
- EventHandlerList.cs
- SafeArrayRankMismatchException.cs
- RawStylusInput.cs
- DefaultWorkflowLoaderService.cs
- ResourceKey.cs
- EntityTemplateUserControl.cs
- XPathMessageContext.cs
- ViewCellSlot.cs
- StylusPointPropertyInfo.cs
- IdentitySection.cs
- SimpleApplicationHost.cs
- DataGridViewRowsRemovedEventArgs.cs
- AttributeEmitter.cs
- ButtonFlatAdapter.cs
- ExeContext.cs
- UnsafePeerToPeerMethods.cs
- Schema.cs
- _ContextAwareResult.cs
- MobileUserControl.cs
- SecUtil.cs
- SrgsRule.cs
- WebBaseEventKeyComparer.cs
- ValidatorUtils.cs
- ContentPropertyAttribute.cs
- KnownIds.cs
- PackageDigitalSignature.cs
- WebPart.cs
- _RequestLifetimeSetter.cs
- WebHttpElement.cs
- NotFiniteNumberException.cs
- CommandBindingCollection.cs
- RewritingValidator.cs
- MimeXmlImporter.cs
- TemplateEditingVerb.cs
- HtmlControlAdapter.cs
- PerformanceCounterPermissionAttribute.cs
- securitycriticaldataformultiplegetandset.cs
- Popup.cs
- TemplatePagerField.cs
- HttpCacheVary.cs
- UnmanagedMarshal.cs
- HttpProcessUtility.cs
- ObjectItemNoOpAssemblyLoader.cs
- TabPage.cs
- TextAction.cs
- CodeStatementCollection.cs
- DesignTimeParseData.cs
- IconConverter.cs
- DispatcherHooks.cs
- ReadOnlyCollectionBase.cs
- ExceptionHelpers.cs
- WarningException.cs
- Int16Storage.cs
- ActivityCodeDomReferenceService.cs
- PathGeometry.cs
- HostProtectionException.cs
- ExpressionPrefixAttribute.cs
- LayoutTableCell.cs
- LabelAutomationPeer.cs
- SafePointer.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- XsdValidatingReader.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- PerformanceCounterLib.cs
- EntityStoreSchemaGenerator.cs
- WebPartDisplayModeCollection.cs
- DataGridLength.cs
- CompiledXpathExpr.cs
- HistoryEventArgs.cs
- DataControlFieldsEditor.cs
- DocumentSequenceHighlightLayer.cs
- Int32AnimationBase.cs
- RectangleConverter.cs
- EncodingTable.cs
- LogLogRecord.cs
- AnimationException.cs