日期:2014-05-17 浏览次数:20993 次
Quote: 引用: Quote: 引用: Quote: 引用: Quote: 引用: Quote: 引用: 给的是大概思路 你需要自己加东西的 private void pictureBox1_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { IsDraw = true; StartPoint = new Point(e.X, e.Y); } else { Graphics g = this.pictureBox1.CreateGraphics(); g.Clear(this.BackColor); } } private void pictureBox1_MouseMove(object sender, MouseEventArgs e) { this.Text = string.Format("X:{0},Y:{1}", e.X, e.Y);
Quote: 引用: Quote: 引用: Quote: 引用: Quote: 引用: 给的是大概思路 你需要自己加东西的 private void pictureBox1_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { IsDraw = true; StartPoint = new Point(e.X, e.Y); } else { Graphics g = this.pictureBox1.CreateGraphics(); g.Clear(this.BackColor); } } private void pictureBox1_MouseMove(object sender, MouseEventArgs e) { this.Text = string.Format("X:{0},Y:{1}", e.X, e.Y);
Quote: 引用: Quote: 引用: Quote: 引用: 给的是大概思路 你需要自己加东西的 private void pictureBox1_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { IsDraw = true; StartPoint = new Point(e.X, e.Y); } else { Graphics g = this.pictureBox1.CreateGraphics(); g.Clear(this.BackColor); } } private void pictureBox1_MouseMove(object sender, MouseEventArgs e) { this.Text = string.Format("X:{0},Y:{1}", e.X, e.Y);
Quote: 引用: Quote: 引用: 给的是大概思路 你需要自己加东西的 private void pictureBox1_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { IsDraw = true; StartPoint = new Point(e.X, e.Y); } else { Graphics g = this.pictureBox1.CreateGraphics(); g.Clear(this.BackColor); } } private void pictureBox1_MouseMove(object sender, MouseEventArgs e) { this.Text = string.Format("X:{0},Y:{1}", e.X, e.Y);
Quote: 引用: 给的是大概思路 你需要自己加东西的 private void pictureBox1_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { IsDraw = true; StartPoint = new Point(e.X, e.Y); } else { Graphics g = this.pictureBox1.CreateGraphics(); g.Clear(this.BackColor); } } private void pictureBox1_MouseMove(object sender, MouseEventArgs e) { this.Text = string.Format("X:{0},Y:{1}", e.X, e.Y);
给的是大概思路 你需要自己加东西的
private void pictureBox1_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { IsDraw = true; StartPoint = new Point(e.X, e.Y); } else { Graphics g = this.pictureBox1.CreateGraphics(); g.Clear(this.BackColor); } } private void pictureBox1_MouseMove(object sender, MouseEventArgs e) { this.Text = string.Format("X:{0},Y:{1}", e.X, e.Y);