摘要: 1 private bool canMove = false; 2 private Point mousePos; 3 4 private void pictureBox1_MouseMove(object sender, MouseEventArgs e) 5 { 6 if (this.canMove) 7 { 8 pictureBox1.Location = new Point(pictureBox1.Location.X 9 - mousePos.X + e.X, pictureBox1.Location.Y10 - mousePos.Y + e.Y);11 }12 }13 14 pr. 阅读全文
posted @ 2011-03-29 14:35 biubiubiu 阅读(474) 评论(0) 推荐(0) 编辑