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 / ControlEvent.cs / 1 / ControlEvent.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.Windows.Forms {
using System.Diagnostics;
using System;
using System.ComponentModel;
///
///
/// A ControlEventArgs is an event that has a control
/// as a property.
///
public class ControlEventArgs : EventArgs {
private Control control;
///
///
/// Retrieves the control object stored in this event.
///
public Control Control {
get {
return control;
}
}
///
///
/// Creates a new ControlEventArgs.
///
public ControlEventArgs(Control control) {
this.control = control;
}
}
}
// 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;
///
///
/// A ControlEventArgs is an event that has a control
/// as a property.
///
public class ControlEventArgs : EventArgs {
private Control control;
///
///
/// Retrieves the control object stored in this event.
///
public Control Control {
get {
return control;
}
}
///
///
/// Creates a new ControlEventArgs.
///
public ControlEventArgs(Control control) {
this.control = control;
}
}
}
// 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
- EntityParameter.cs
- TypeConverterHelper.cs
- EditingMode.cs
- CreateUserErrorEventArgs.cs
- EntityDataSourceContainerNameItem.cs
- FunctionCommandText.cs
- SettingsPropertyIsReadOnlyException.cs
- TextFormatterImp.cs
- ToolStripPanel.cs
- NativeObjectSecurity.cs
- EdgeModeValidation.cs
- DSASignatureDeformatter.cs
- ConfigWriter.cs
- HashCodeCombiner.cs
- HtmlInputPassword.cs
- AmbientLight.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- XamlPoint3DCollectionSerializer.cs
- ConfigurationProperty.cs
- DescendentsWalker.cs
- BinaryWriter.cs
- DoubleAnimation.cs
- IisTraceWebEventProvider.cs
- WindowsGrip.cs
- SendingRequestEventArgs.cs
- UInt16.cs
- DescriptionAttribute.cs
- _TransmitFileOverlappedAsyncResult.cs
- ProcessThread.cs
- TypeInfo.cs
- AddInStore.cs
- ConfigurationManagerHelperFactory.cs
- CustomErrorsSection.cs
- RelationalExpressions.cs
- WebPartUtil.cs
- printdlgexmarshaler.cs
- latinshape.cs
- InternalResources.cs
- XamlDebuggerXmlReader.cs
- SectionVisual.cs
- PlainXmlWriter.cs
- _Semaphore.cs
- EncoderReplacementFallback.cs
- LocalBuilder.cs
- OperatorExpressions.cs
- FixedSOMTableCell.cs
- Cursors.cs
- SqlDataSourceCache.cs
- KnownColorTable.cs
- ElementHostPropertyMap.cs
- SqlUdtInfo.cs
- IISUnsafeMethods.cs
- VirtualDirectoryMappingCollection.cs
- ResourceContainerWrapper.cs
- WebHttpEndpointElement.cs
- Rect.cs
- BezierSegment.cs
- CompareInfo.cs
- ManipulationStartedEventArgs.cs
- GridViewEditEventArgs.cs
- BitStream.cs
- SchemaObjectWriter.cs
- XmlAttributeOverrides.cs
- TextRunProperties.cs
- SafeArrayRankMismatchException.cs
- XmlCharCheckingWriter.cs
- ServiceContractGenerationContext.cs
- PersonalizationStateInfoCollection.cs
- FontDialog.cs
- FormsAuthenticationConfiguration.cs
- EncoderBestFitFallback.cs
- DiscreteKeyFrames.cs
- StrokeDescriptor.cs
- ItemTypeToolStripMenuItem.cs
- RegisteredExpandoAttribute.cs
- SafeRightsManagementHandle.cs
- DesignerLinkAdapter.cs
- PropertyInfo.cs
- SerialStream.cs
- QueryStatement.cs
- ElementProxy.cs
- SimpleMailWebEventProvider.cs
- AnnotationHighlightLayer.cs
- UriSection.cs
- TextRunCache.cs
- MetadataArtifactLoaderFile.cs
- _BasicClient.cs
- ProgressBarRenderer.cs
- ColorMap.cs
- PeerEndPoint.cs
- HttpClientCertificate.cs
- MenuItemCollection.cs
- COM2PictureConverter.cs
- HtmlFormWrapper.cs
- CompatibleComparer.cs
- SystemIPAddressInformation.cs
- SchemaAttDef.cs
- SQLInt64.cs
- AddInPipelineAttributes.cs
- TextProperties.cs