Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / WinForms / Managed / System / WinForms / TabControlEvent.cs / 1 / TabControlEvent.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 TabControlEventArgs : EventArgs {
private TabPage tabPage;
private int tabPageIndex;
private TabControlAction action;
///
///
///
/// Initializes a new instance of the class.
///
///
///
public TabControlEventArgs(TabPage tabPage, int tabPageIndex, TabControlAction action) {
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.
//
//-----------------------------------------------------------------------------
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 TabControlEventArgs : EventArgs {
private TabPage tabPage;
private int tabPageIndex;
private TabControlAction action;
///
///
///
/// Initializes a new instance of the class.
///
///
///
public TabControlEventArgs(TabPage tabPage, int tabPageIndex, TabControlAction action) {
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
- ArglessEventHandlerProxy.cs
- TemplateField.cs
- PublisherMembershipCondition.cs
- SchemaElementDecl.cs
- VectorAnimationBase.cs
- RadioButtonBaseAdapter.cs
- Deserializer.cs
- BaseComponentEditor.cs
- StoreContentChangedEventArgs.cs
- sqlmetadatafactory.cs
- ComponentDispatcher.cs
- CounterCreationDataConverter.cs
- DocumentPageHost.cs
- GenericsInstances.cs
- TextSelection.cs
- WindowsListViewItem.cs
- ProcessStartInfo.cs
- CodeAttributeArgument.cs
- Cursors.cs
- ScrollViewerAutomationPeer.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- ProvideValueServiceProvider.cs
- DataGridColumnCollectionEditor.cs
- CodeSnippetStatement.cs
- ScriptResourceHandler.cs
- CookielessHelper.cs
- SynchronizationLockException.cs
- XmlSubtreeReader.cs
- RowParagraph.cs
- CollectionTraceRecord.cs
- MailMessage.cs
- TextElementCollectionHelper.cs
- BitmapCodecInfoInternal.cs
- CursorConverter.cs
- ReferenceEqualityComparer.cs
- AsyncWaitHandle.cs
- LocalBuilder.cs
- BamlLocalizableResourceKey.cs
- SchemaCollectionCompiler.cs
- ModifierKeysConverter.cs
- WebServiceMethodData.cs
- TypeDependencyAttribute.cs
- CachedFontFamily.cs
- SchemaManager.cs
- PerfService.cs
- StaticFileHandler.cs
- RecognizerInfo.cs
- AttributeProviderAttribute.cs
- DuplicateWaitObjectException.cs
- ObjectKeyFrameCollection.cs
- AutomationEvent.cs
- MatrixTransform3D.cs
- CacheChildrenQuery.cs
- CacheModeConverter.cs
- ToolStripDropTargetManager.cs
- ReadOnlyDataSourceView.cs
- SByteConverter.cs
- IPPacketInformation.cs
- SqlStream.cs
- XmlReflectionImporter.cs
- FilterQuery.cs
- MaskedTextBox.cs
- DropShadowEffect.cs
- DateTimeValueSerializerContext.cs
- CounterCreationDataCollection.cs
- ListenerPerfCounters.cs
- GraphicsContext.cs
- DefaultPrintController.cs
- UnsafeNativeMethods.cs
- Relationship.cs
- OdbcParameterCollection.cs
- DefaultBindingPropertyAttribute.cs
- InstanceLockLostException.cs
- PathSegment.cs
- CodeBinaryOperatorExpression.cs
- SharedUtils.cs
- ManualResetEvent.cs
- HelpFileFileNameEditor.cs
- XPathNodePointer.cs
- GenericTypeParameterBuilder.cs
- AppDomainProtocolHandler.cs
- Label.cs
- PersistenceMetadataNamespace.cs
- LayeredChannelFactory.cs
- OutOfMemoryException.cs
- serverconfig.cs
- FunctionDescription.cs
- DataListCommandEventArgs.cs
- ImplicitInputBrush.cs
- QueryOperationResponseOfT.cs
- HttpWriter.cs
- EventTrigger.cs
- ItemCollectionEditor.cs
- WebPartHelpVerb.cs
- WindowsGraphics.cs
- RecoverInstanceLocksCommand.cs
- CompiledXpathExpr.cs
- FieldMetadata.cs
- DataKey.cs
- DynamicDocumentPaginator.cs