日期:2014-05-18 浏览次数:20931 次
private void dgvCarList_MouseMove(object sender, MouseEventArgs e)
{
if (e.Y > -3 && e.Y < 3)
{
this.dgvCarList.Cursor = this.btnCurSizeNs.Cursor;
}
else
{
if (this.IsdgvMove == true)
{
this.dgvCarList.Cursor = this.btnCurSizeNs.Cursor;
}
else
{
this.dgvCarList.Cursor = this.btuCurZhengChang.Cursor;
}
}
}
private void dgvCarList_MouseDown(object sender, MouseEventArgs e)
{
if (e.Y > -3 && e.Y < 3)
{
this.IsdgvMove = true;
}
}
private void dgvCarList_MouseUp(object sender, MouseEventArgs e)
{
if (!this.IsdgvMove)
{
return;
}
this.panControl.Size = new Size(this.panControl.Width, this.panControl.Size.Height + e.Y);
this.panList.Size = new Size(this.Size.Width, this.Size.Height - e.Y);
this.panList.Location = new Point(this.panList.Location.X, this.panList.Location.Y + e.Y);
this.IsdgvMove = false;
}