DSShared.Lists.CustomListColumnCollection.MouseDown C# (CSharp) Method

MouseDown() public method

The parent calls this when the mouse button is pressed
public MouseDown ( MouseEventArgs e ) : void
e MouseEventArgs The instance containing the event data.
return void
		public void MouseDown(MouseEventArgs e)
		{
			if(e.Y<headerHeight)
			{
				if(overThreshhold!=null)
					movingCol=overThreshhold;
			}
			else
			{
				if(RowClicked!=null)
					RowClicked(this,e);
			}
		}

Usage Example

Example #1
0
 /// <summary>
 /// Raises the <see cref="E:System.Windows.Forms.Control.MouseDown"></see> event.
 /// </summary>
 /// <param name="e">A <see cref="T:System.Windows.Forms.MouseEventArgs"></see> that contains the event data.</param>
 protected override void OnMouseDown(MouseEventArgs e)
 {
     base.OnMouseDown(e);
     columns.MouseDown(e);
     Focus();
 }