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 / HandledMouseEvent.cs / 1 / HandledMouseEvent.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Windows.Forms
{
///
public class HandledMouseEventArgs : MouseEventArgs
{
///
/// Indicates, on return, whether or not the event was handled in the application's event handler.
/// 'true' means the application handled the event, 'false' means it didn't.
///
private bool handled;
///
public HandledMouseEventArgs(MouseButtons button, int clicks, int x, int y, int delta) : this(button, clicks, x, y, delta, false)
{
}
///
public HandledMouseEventArgs(MouseButtons button, int clicks, int x, int y, int delta, bool defaultHandledValue) : base(button, clicks, x, y, delta)
{
this.handled = defaultHandledValue;
}
///
///
///
/// Gets or sets a value
/// indicating whether the event is handled.
///
///
public bool Handled
{
get
{
return this.handled;
}
set
{
this.handled = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Windows.Forms
{
///
public class HandledMouseEventArgs : MouseEventArgs
{
///
/// Indicates, on return, whether or not the event was handled in the application's event handler.
/// 'true' means the application handled the event, 'false' means it didn't.
///
private bool handled;
///
public HandledMouseEventArgs(MouseButtons button, int clicks, int x, int y, int delta) : this(button, clicks, x, y, delta, false)
{
}
///
public HandledMouseEventArgs(MouseButtons button, int clicks, int x, int y, int delta, bool defaultHandledValue) : base(button, clicks, x, y, delta)
{
this.handled = defaultHandledValue;
}
///
///
///
/// Gets or sets a value
/// indicating whether the event is handled.
///
///
public bool Handled
{
get
{
return this.handled;
}
set
{
this.handled = value;
}
}
}
}
// 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
- XMLUtil.cs
- __FastResourceComparer.cs
- StateRuntime.cs
- DataSourceCacheDurationConverter.cs
- CheckBoxDesigner.cs
- DynamicScriptObject.cs
- COMException.cs
- PolyBezierSegmentFigureLogic.cs
- ImmutableDispatchRuntime.cs
- SuppressMergeCheckAttribute.cs
- EventBuilder.cs
- Journaling.cs
- ImageIndexConverter.cs
- HttpRequestWrapper.cs
- SplineKeyFrames.cs
- ColumnReorderedEventArgs.cs
- DataGridCell.cs
- TokenBasedSetEnumerator.cs
- ConfigurationPropertyAttribute.cs
- ToolCreatedEventArgs.cs
- MemoryResponseElement.cs
- WinFormsSecurity.cs
- TileBrush.cs
- FormsAuthenticationUserCollection.cs
- SessionStateModule.cs
- WebPartCollection.cs
- AudioStateChangedEventArgs.cs
- BoolLiteral.cs
- WpfSharedXamlSchemaContext.cs
- WebZone.cs
- TableCell.cs
- ActivityExecutionFilter.cs
- IdnMapping.cs
- FillErrorEventArgs.cs
- TableCellAutomationPeer.cs
- Event.cs
- OlePropertyStructs.cs
- Drawing.cs
- ExtensionSimplifierMarkupObject.cs
- TextEditorLists.cs
- SoapReflectionImporter.cs
- StructuralObject.cs
- SqlHelper.cs
- SrgsText.cs
- ActiveXSerializer.cs
- ComPlusInstanceProvider.cs
- ImageIndexConverter.cs
- EnumDataContract.cs
- VerticalAlignConverter.cs
- Rotation3DAnimationBase.cs
- XPathNavigator.cs
- _UriTypeConverter.cs
- GeneralTransformGroup.cs
- CodeSnippetExpression.cs
- sqlmetadatafactory.cs
- _PooledStream.cs
- QuaternionKeyFrameCollection.cs
- DataChangedEventManager.cs
- MaskedTextBox.cs
- _CommandStream.cs
- StyleCollection.cs
- InternalsVisibleToAttribute.cs
- SqlRowUpdatingEvent.cs
- BinaryObjectInfo.cs
- GeneralTransform.cs
- RPIdentityRequirement.cs
- SchemaTypeEmitter.cs
- BitmapSizeOptions.cs
- DataTableCollection.cs
- Intellisense.cs
- ConfigXmlSignificantWhitespace.cs
- VisualStyleRenderer.cs
- SymbolTable.cs
- TextServicesCompartmentContext.cs
- ProjectionCamera.cs
- Exceptions.cs
- MaterialGroup.cs
- OptionalColumn.cs
- DataGridColumnStyleMappingNameEditor.cs
- SoapInteropTypes.cs
- MarshalDirectiveException.cs
- PersistChildrenAttribute.cs
- WebException.cs
- MeshGeometry3D.cs
- AuthenticationService.cs
- AttachedAnnotationChangedEventArgs.cs
- HeaderElement.cs
- TimeStampChecker.cs
- DivideByZeroException.cs
- DbMetaDataColumnNames.cs
- FileUtil.cs
- PropertyKey.cs
- SQLInt32Storage.cs
- cookiecollection.cs
- ICollection.cs
- LightweightEntityWrapper.cs
- RestHandlerFactory.cs
- CodeDefaultValueExpression.cs
- StorageMappingItemLoader.cs
- FederatedMessageSecurityOverHttpElement.cs