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
- InputReportEventArgs.cs
- WorkflowRuntimeServiceElementCollection.cs
- WindowInteractionStateTracker.cs
- ToggleButton.cs
- followingsibling.cs
- FacetDescriptionElement.cs
- HttpServerVarsCollection.cs
- GetPageNumberCompletedEventArgs.cs
- GeneralTransform3DGroup.cs
- GridViewDeletedEventArgs.cs
- ErrorInfoXmlDocument.cs
- Evaluator.cs
- Delegate.cs
- MsmqIntegrationOutputChannel.cs
- MessagePartSpecification.cs
- BufferedGraphics.cs
- CodeDOMUtility.cs
- AliasGenerator.cs
- CorePropertiesFilter.cs
- WindowsRebar.cs
- MdiWindowListItemConverter.cs
- DiscoveryMessageSequenceCD1.cs
- SeekStoryboard.cs
- Highlights.cs
- DigestTraceRecordHelper.cs
- SafeCancelMibChangeNotify.cs
- RadioButton.cs
- ScriptRef.cs
- StrokeCollectionConverter.cs
- KnownAssembliesSet.cs
- AlignmentYValidation.cs
- CellTreeNode.cs
- RelatedImageListAttribute.cs
- nulltextcontainer.cs
- SpeechSynthesizer.cs
- XmlHelper.cs
- SqlBuffer.cs
- DataControlField.cs
- ContextProperty.cs
- Point.cs
- MetadataUtilsSmi.cs
- PlainXmlDeserializer.cs
- CustomErrorCollection.cs
- OptimalBreakSession.cs
- DataGridViewSortCompareEventArgs.cs
- VoiceInfo.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- basenumberconverter.cs
- UnmanagedMemoryStreamWrapper.cs
- Directory.cs
- SoapParser.cs
- Debugger.cs
- FullTextLine.cs
- Int32.cs
- ServerProtocol.cs
- PropertyChangingEventArgs.cs
- GroupBoxRenderer.cs
- SaveCardRequest.cs
- InkCanvasAutomationPeer.cs
- RuntimeResourceSet.cs
- SingleAnimationBase.cs
- DefaultProxySection.cs
- FileUtil.cs
- ClientBuildManager.cs
- HttpClientChannel.cs
- WebPartConnectionsEventArgs.cs
- XmlDocumentFieldSchema.cs
- EDesignUtil.cs
- Interlocked.cs
- UserControl.cs
- PreservationFileReader.cs
- DesignerSelectionListAdapter.cs
- CriticalFinalizerObject.cs
- MissingFieldException.cs
- StreamMarshaler.cs
- ArgIterator.cs
- DataShape.cs
- NativeMethods.cs
- TextTreeRootNode.cs
- SoapFormatterSinks.cs
- httpstaticobjectscollection.cs
- ColorMap.cs
- UInt64.cs
- TransformerConfigurationWizardBase.cs
- GraphicsPathIterator.cs
- EditingMode.cs
- ToolZone.cs
- listitem.cs
- WindowPattern.cs
- DialogResultConverter.cs
- BaseParaClient.cs
- ExpressionVisitor.cs
- SR.cs
- MergePropertyDescriptor.cs
- ExpressionsCollectionConverter.cs
- DataGridViewRowsRemovedEventArgs.cs
- EntityDataSourceDataSelection.cs
- ClientType.cs
- TextReturnReader.cs
- FixedSOMElement.cs