protected override void OnMouseDown(MouseEventArgs e)
{
base.OnMouseDown(e);
switch (e.Button)
{
case MouseButtons.Left:
if (resizeType != resizeTypes.None)
{
resizing = true;
resizeStartMouseLocation = PointToScreen(e.Location);
resizeStartLocation = Location;
resizeStartWidth = Width;
// Find prev button.
var table = Parent as TableView;
var button = table.topLeftButton;
if (column.Index > 0)
button = table.Columns[column.Index - 1].control as TableColumnButton;
prevButton = button;
}
break;
}
}
protected override void OnMouseHover(EventArgs e)