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
- WindowsPrincipal.cs
- WebPartCatalogCloseVerb.cs
- SafeCryptoHandles.cs
- TableAdapterManagerGenerator.cs
- FixedDocumentPaginator.cs
- InternalConfirm.cs
- SQLGuid.cs
- TableSectionStyle.cs
- WebBrowserProgressChangedEventHandler.cs
- Matrix3DStack.cs
- SqlColumnizer.cs
- DataGridViewSelectedColumnCollection.cs
- AddInAttribute.cs
- AssemblyCache.cs
- HijriCalendar.cs
- Stream.cs
- WindowPatternIdentifiers.cs
- MenuItem.cs
- Pointer.cs
- xmlformatgeneratorstatics.cs
- XmlNodeComparer.cs
- TransactionChannelFactory.cs
- TypeBinaryExpression.cs
- EditorPartChrome.cs
- ReflectionTypeLoadException.cs
- Span.cs
- ToolStripContentPanelRenderEventArgs.cs
- WindowsStatic.cs
- ButtonColumn.cs
- RegisteredDisposeScript.cs
- CellCreator.cs
- ResolveInfo.cs
- TaskbarItemInfo.cs
- QueryPageSettingsEventArgs.cs
- DataObjectPastingEventArgs.cs
- Fx.cs
- RelOps.cs
- TraceContextRecord.cs
- XmlWriterSettings.cs
- MessageHeaderException.cs
- Cast.cs
- EmptyStringExpandableObjectConverter.cs
- PermissionAttributes.cs
- RawStylusInputCustomDataList.cs
- StatusStrip.cs
- TerminatingOperationBehavior.cs
- CustomWebEventKey.cs
- SubpageParagraph.cs
- Condition.cs
- Group.cs
- XmlSchemaCollection.cs
- InkCanvasFeedbackAdorner.cs
- PassportAuthenticationModule.cs
- TextBoxLine.cs
- XamlParser.cs
- RangeEnumerable.cs
- ProtectedUri.cs
- GenericTypeParameterBuilder.cs
- InvalidOperationException.cs
- EmptyEnumerable.cs
- ConvertersCollection.cs
- DBNull.cs
- WebBrowserSiteBase.cs
- XmlDictionaryReaderQuotasElement.cs
- OleDbDataAdapter.cs
- ColumnTypeConverter.cs
- Label.cs
- ListBase.cs
- SetterBaseCollection.cs
- CmsInterop.cs
- LicenseProviderAttribute.cs
- CodeDomSerializerBase.cs
- WebPartsPersonalization.cs
- DataGridHeaderBorder.cs
- RowUpdatingEventArgs.cs
- Matrix3D.cs
- OrCondition.cs
- ThicknessAnimationBase.cs
- PLINQETWProvider.cs
- MemberRelationshipService.cs
- SimpleApplicationHost.cs
- CookieParameter.cs
- KeyValueInternalCollection.cs
- StreamingContext.cs
- TextEndOfParagraph.cs
- WebResponse.cs
- TextTreeExtractElementUndoUnit.cs
- DataServiceException.cs
- TcpTransportElement.cs
- SqlClientMetaDataCollectionNames.cs
- PeerNearMe.cs
- TextEditorTyping.cs
- DataGrid.cs
- ChunkedMemoryStream.cs
- MetaModel.cs
- EmptyEnumerable.cs
- SmiEventSink.cs
- StaticTextPointer.cs
- FrameworkElementFactoryMarkupObject.cs