public void ToolMouseUp(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { diamond.width = e.X - this.diamond.x; diamond.height = e.Y - this.diamond.y; diamond.Select(); } }