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
- FormClosingEvent.cs
- TrustLevelCollection.cs
- ExpressionNormalizer.cs
- AddInEnvironment.cs
- BooleanConverter.cs
- ListControlStringCollectionEditor.cs
- SoapHeaderAttribute.cs
- FloatUtil.cs
- LabelLiteral.cs
- NumericPagerField.cs
- OleStrCAMarshaler.cs
- EpmContentSerializer.cs
- uribuilder.cs
- NumberAction.cs
- Substitution.cs
- LayoutSettings.cs
- BitmapDecoder.cs
- XdrBuilder.cs
- WorkflowOperationInvoker.cs
- SHA384.cs
- TraceLog.cs
- Attributes.cs
- MouseButton.cs
- RelationshipFixer.cs
- VisualStyleTypesAndProperties.cs
- TcpTransportBindingElement.cs
- Journal.cs
- ProcessHostConfigUtils.cs
- LayoutUtils.cs
- DecimalAnimationBase.cs
- DataBindingExpressionBuilder.cs
- WebPartPersonalization.cs
- DataGridClipboardCellContent.cs
- ValidationEventArgs.cs
- TemplateContent.cs
- XmlILAnnotation.cs
- FontDriver.cs
- DotExpr.cs
- UseLicense.cs
- IndexerReference.cs
- BinHexDecoder.cs
- DesignerAdapterUtil.cs
- ObjectAnimationUsingKeyFrames.cs
- SmtpClient.cs
- Bits.cs
- SpeechSynthesizer.cs
- ArgumentException.cs
- XamlFigureLengthSerializer.cs
- CompareValidator.cs
- ToolStripItem.cs
- DependencyObject.cs
- ForwardPositionQuery.cs
- XmlSchemaImporter.cs
- ArgumentOutOfRangeException.cs
- TransformedBitmap.cs
- SQLDoubleStorage.cs
- DataError.cs
- PlaceHolder.cs
- SchemaElement.cs
- StringWriter.cs
- SQLBoolean.cs
- ToolboxDataAttribute.cs
- EncryptedKey.cs
- ResXResourceWriter.cs
- PropertyEntry.cs
- MetadataCache.cs
- XappLauncher.cs
- StdValidatorsAndConverters.cs
- ActiveDesignSurfaceEvent.cs
- ElementHost.cs
- HitTestWithPointDrawingContextWalker.cs
- WebConfigurationHost.cs
- AssociationSetEnd.cs
- ConnectionPoint.cs
- Condition.cs
- ViewSimplifier.cs
- SendContent.cs
- TreeNodeStyleCollectionEditor.cs
- ProtocolsConfigurationEntry.cs
- SoapIgnoreAttribute.cs
- ManifestSignedXml.cs
- InputReferenceExpression.cs
- XPathSelectionIterator.cs
- SiteMap.cs
- LogLogRecordHeader.cs
- Cursor.cs
- OleDbReferenceCollection.cs
- XmlQueryOutput.cs
- XsltContext.cs
- ContentType.cs
- KeyValueSerializer.cs
- InitializationEventAttribute.cs
- SelectionItemPattern.cs
- UpWmlPageAdapter.cs
- OutputWindow.cs
- WebPartCloseVerb.cs
- RsaKeyIdentifierClause.cs
- BulletChrome.cs
- SmtpReplyReader.cs
- CutCopyPasteHelper.cs