System.Windows.Forms.DataGridView.OnMouseMove(System.Windows.Forms.MouseEventArgs)

Here are the examples of the csharp api class System.Windows.Forms.DataGridView.OnMouseMove(System.Windows.Forms.MouseEventArgs) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

3 Examples 7

1. Example

Project: Analysis-Services
Source File: TreeGridView.cs
View license
protected override void OnMouseMove(MouseEventArgs e)
		{
			// while we are expanding and collapsing a node mouse moves are
			// supressed to keep selections from being messed up.
			if (!this._inExpandCollapseMouseCapture)
				base.OnMouseMove(e);

		}

2. Example

Project: BismNormalizer
Source File: TreeGridView.cs
View license
protected override void OnMouseMove(MouseEventArgs e)
		{
			// while we are expanding and collapsing a node mouse moves are
			// supressed to keep selections from being messed up.
			if (!this._inExpandCollapseMouseCapture)
				base.OnMouseMove(e);

		}

3. Example

View license
protected override void OnMouseMove(MouseEventArgs e)
		{
			if (_rowIndexFromMouseDown != -1 &&
			    (e.Button & MouseButtons.Left) == MouseButtons.Left)
			{
				if (ShouldBeginDrag(e))
				{
					// Proceed with the drag and drop, passing in the list item.  
					ItemDragEventArgs args = new ItemDragEventArgs(MouseButtons.Left, null);
					EventsHelper.Fire(_itemDrag, this, args);

					// reset the drag box to empty so that the event is not fired repeatedly
					_dragBoxFromMouseDown = Rectangle.Empty;
				}
			}
			else
			{
				// allow the base class to handle it only if the left mouse button was not pressed
				base.OnMouseMove(e);
			}
		}