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
- MetadataPropertyAttribute.cs
- SQLResource.cs
- CopyAction.cs
- SqlClientWrapperSmiStream.cs
- CodeDesigner.cs
- PairComparer.cs
- TransformationRules.cs
- Internal.cs
- EditorResources.cs
- RawStylusInput.cs
- ReadOnlyObservableCollection.cs
- DecimalAnimationUsingKeyFrames.cs
- MatrixTransform.cs
- DrawingContextFlattener.cs
- DBSchemaRow.cs
- XPathChildIterator.cs
- TemplateLookupAction.cs
- OdbcDataReader.cs
- RtfFormatStack.cs
- XmlTypeMapping.cs
- SecurityKeyUsage.cs
- RowUpdatedEventArgs.cs
- DataKeyCollection.cs
- DataBindingHandlerAttribute.cs
- DataPagerFieldCollection.cs
- BodyWriter.cs
- PrintPreviewGraphics.cs
- ActivityExecutorOperation.cs
- IndexedGlyphRun.cs
- CacheMemory.cs
- BitmapCodecInfo.cs
- CharStorage.cs
- Animatable.cs
- CounterSampleCalculator.cs
- XslCompiledTransform.cs
- PrivilegedConfigurationManager.cs
- HttpContextServiceHost.cs
- StaticTextPointer.cs
- CodeDirectionExpression.cs
- HttpProfileGroupBase.cs
- FormsAuthenticationEventArgs.cs
- BinaryReader.cs
- EntityClientCacheEntry.cs
- SerializationException.cs
- DataPagerFieldCollection.cs
- GridViewDeleteEventArgs.cs
- CmsInterop.cs
- NTAccount.cs
- BindingNavigatorDesigner.cs
- SoapServerMessage.cs
- GlyphInfoList.cs
- DataControlField.cs
- IpcManager.cs
- Padding.cs
- EventLogPropertySelector.cs
- BamlMapTable.cs
- SqlCommandSet.cs
- RadioButtonList.cs
- Symbol.cs
- ActivityDesigner.cs
- DelegatingChannelListener.cs
- DocumentPage.cs
- NameSpaceExtractor.cs
- OutArgumentConverter.cs
- KoreanLunisolarCalendar.cs
- BinaryFormatter.cs
- JsonReaderDelegator.cs
- PlainXmlSerializer.cs
- Debugger.cs
- XmlSchemaDatatype.cs
- RequestResizeEvent.cs
- StrongName.cs
- XPathSelectionIterator.cs
- TaiwanCalendar.cs
- TypefaceCollection.cs
- XamlBrushSerializer.cs
- SessionStateItemCollection.cs
- WorkflowApplicationEventArgs.cs
- UiaCoreApi.cs
- Encoder.cs
- BufferedOutputAsyncStream.cs
- WebPartDisplayModeCollection.cs
- ExpressionBuilderContext.cs
- filewebrequest.cs
- DrawingImage.cs
- DbDataReader.cs
- ConnectionPoint.cs
- SourceFileBuildProvider.cs
- AutomationAttributeInfo.cs
- TypeGeneratedEventArgs.cs
- RuleSettingsCollection.cs
- CodeGotoStatement.cs
- TextContainerChangeEventArgs.cs
- ExtensionSimplifierMarkupObject.cs
- XmlName.cs
- PrtTicket_Public_Simple.cs
- TreeNodeStyleCollection.cs
- LightweightCodeGenerator.cs
- ListManagerBindingsCollection.cs
- CompiledQuery.cs