Code:
/ DotNET / DotNET / 8.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
- Int16Storage.cs
- WindowsListViewItemStartMenu.cs
- TagPrefixInfo.cs
- ArrayList.cs
- ReceiveDesigner.xaml.cs
- RepeaterDataBoundAdapter.cs
- CopyOnWriteList.cs
- DrawingAttributeSerializer.cs
- ItemCheckedEvent.cs
- SoapExtensionStream.cs
- CodeIdentifiers.cs
- ProcessDesigner.cs
- Action.cs
- ProjectionCamera.cs
- DependencyObjectValidator.cs
- KeyGesture.cs
- GlyphRunDrawing.cs
- SQLDoubleStorage.cs
- AsymmetricCryptoHandle.cs
- TextInfo.cs
- Substitution.cs
- Stackframe.cs
- _HeaderInfoTable.cs
- MetadataArtifactLoader.cs
- PostBackTrigger.cs
- Border.cs
- DBCommand.cs
- ExpandSegment.cs
- StringConverter.cs
- FontDifferentiator.cs
- WeakReadOnlyCollection.cs
- ImplicitInputBrush.cs
- TrackingSection.cs
- SmtpLoginAuthenticationModule.cs
- FixedFlowMap.cs
- PropertyDescriptor.cs
- RelationshipNavigation.cs
- Schema.cs
- FieldMetadata.cs
- SystemIcmpV6Statistics.cs
- TabletDevice.cs
- PlatformNotSupportedException.cs
- DocumentOrderQuery.cs
- WinFormsSpinner.cs
- QueryOptionExpression.cs
- DigitalSignature.cs
- CustomValidator.cs
- DataServiceQuery.cs
- VisualBasicHelper.cs
- HttpStreamXmlDictionaryReader.cs
- DesignTimeTemplateParser.cs
- RegexCode.cs
- RouteValueDictionary.cs
- PropertyMapper.cs
- AliasedSlot.cs
- ConfigUtil.cs
- TemplateBindingExtension.cs
- SqlDependencyListener.cs
- KoreanCalendar.cs
- TlsnegoTokenAuthenticator.cs
- InvalidOperationException.cs
- ConnectionPointConverter.cs
- TraceLevelStore.cs
- XmlKeywords.cs
- DoubleStorage.cs
- ResourceIDHelper.cs
- AndCondition.cs
- ServiceModelExtensionElement.cs
- GridItemPatternIdentifiers.cs
- OneToOneMappingSerializer.cs
- ServiceElement.cs
- WebBrowserDocumentCompletedEventHandler.cs
- BinHexDecoder.cs
- XhtmlBasicSelectionListAdapter.cs
- HttpHandlersInstallComponent.cs
- IdentitySection.cs
- DotNetATv1WindowsLogEntryDeserializer.cs
- ProtocolsInstallComponent.cs
- Configuration.cs
- TransportSecurityBindingElement.cs
- SBCSCodePageEncoding.cs
- Pkcs9Attribute.cs
- ConstantExpression.cs
- SrgsSemanticInterpretationTag.cs
- StrokeSerializer.cs
- PropertyNames.cs
- FaultReason.cs
- NameValueFileSectionHandler.cs
- PrtCap_Reader.cs
- CompilationUtil.cs
- ValidatorCompatibilityHelper.cs
- RegexGroup.cs
- NonBatchDirectoryCompiler.cs
- ICspAsymmetricAlgorithm.cs
- AffineTransform3D.cs
- Models.cs
- BitmapEffectDrawingContextWalker.cs
- DiagnosticStrings.cs
- IndicShape.cs
- WebEncodingValidatorAttribute.cs