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
- Mutex.cs
- ObjectParameterCollection.cs
- SetState.cs
- EntityDataSourceContextDisposingEventArgs.cs
- WebControl.cs
- Int64Storage.cs
- ProcessInputEventArgs.cs
- RoleService.cs
- latinshape.cs
- OperationInvokerBehavior.cs
- WebPageTraceListener.cs
- TargetException.cs
- SqlDataRecord.cs
- Serializer.cs
- LoginCancelEventArgs.cs
- Int32Storage.cs
- CallContext.cs
- Semaphore.cs
- CollectionAdapters.cs
- DisplayMemberTemplateSelector.cs
- EdmError.cs
- DesignerActionMethodItem.cs
- DataGridViewCellPaintingEventArgs.cs
- DbXmlEnabledProviderManifest.cs
- OleDbPropertySetGuid.cs
- BreakRecordTable.cs
- StylusOverProperty.cs
- Transform3DCollection.cs
- formatstringdialog.cs
- TransformedBitmap.cs
- Int32Converter.cs
- ILGen.cs
- JumpTask.cs
- RequestCacheValidator.cs
- PageContent.cs
- ClientCultureInfo.cs
- ZipPackagePart.cs
- ImmutableCollection.cs
- ThousandthOfEmRealDoubles.cs
- WindowsScrollBar.cs
- WindowHideOrCloseTracker.cs
- SSmlParser.cs
- NaturalLanguageHyphenator.cs
- ServiceNameElementCollection.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- TextFindEngine.cs
- RC2CryptoServiceProvider.cs
- BinaryFormatter.cs
- WebDisplayNameAttribute.cs
- DataObjectEventArgs.cs
- HtmlUtf8RawTextWriter.cs
- VectorCollectionConverter.cs
- AssociatedControlConverter.cs
- EventHandlersDesigner.cs
- SecondaryIndexDefinition.cs
- MarkupProperty.cs
- XmlHelper.cs
- SqlDependencyUtils.cs
- RequestCacheManager.cs
- InputScopeNameConverter.cs
- FloaterParaClient.cs
- MembershipUser.cs
- HwndKeyboardInputProvider.cs
- XPathNodeHelper.cs
- DataListItem.cs
- StickyNote.cs
- ProtocolsSection.cs
- DefaultAsyncDataDispatcher.cs
- XmlCharCheckingReader.cs
- WebEvents.cs
- ReliabilityContractAttribute.cs
- Int16Animation.cs
- __Error.cs
- QilList.cs
- OperationResponse.cs
- LocalValueEnumerator.cs
- AdapterSwitches.cs
- XmlILAnnotation.cs
- XamlDesignerSerializationManager.cs
- Timer.cs
- AdRotator.cs
- SafeNativeMethods.cs
- GenericWebPart.cs
- SubqueryRules.cs
- ObjectKeyFrameCollection.cs
- DataListCommandEventArgs.cs
- WorkflowOperationBehavior.cs
- DataGridViewControlCollection.cs
- SegmentInfo.cs
- ExtendLockAsyncResult.cs
- ParsedAttributeCollection.cs
- EventToken.cs
- HttpListenerRequest.cs
- HostSecurityManager.cs
- TextParagraph.cs
- SuppressIldasmAttribute.cs
- NameObjectCollectionBase.cs
- GenericIdentity.cs
- MultiDataTrigger.cs
- InstancePersistence.cs