마우스로 누르면서 해당지점으로 이동시
선이 그려지게 하는거 어떻게하나요?
Pen , Point ?? 이런거 써야하나요?
간단히좀 알려주세용 ㅠㅠ.. 하는방법만용 ...ㅠㅠ
폼에 PANEL도 붙여야하나요
마우스로 누르면서 해당지점으로 이동시
선이 그려지게 하는거 어떻게하나요?
Pen , Point ?? 이런거 써야하나요?
간단히좀 알려주세용 ㅠㅠ.. 하는방법만용 ...ㅠㅠ
폼에 PANEL도 붙여야하나요
| 번호 | 분류 | 제목 | 날짜 | 
|---|---|---|---|
| 117 | 전기,전자,펌웨어 | baud rate 질문 드립니다.ㅜ  2 | 2010.12.21 | 
| 116 | 일반 | 실행 질문이요  3 | 2011.01.28 | 
| 115 | 일반 | [프로그램 추가/삭제] 리스트 추가 요청입니다.  1 | 2011.02.06 | 
| 114 | 전기,전자,펌웨어 | 마이컴으로 RS485 통신 구현하는 C프로그램  1 | 2011.02.08 | 
| 113 | 일반 | [시작 프로그램]추가요청드려요  1 | 2011.03.06 | 
| 112 | 일반 | whiteat 잘쓰고 있었는데 갑자기 안되요  1   | 2011.03.12 | 
| 111 | 일반 | 비밀글 입니다.  1   | 2011.03.29 | 
| 110 | 전기,전자,펌웨어 | orcad ic 질문이요  1 | 2011.03.29 | 
| 109 | 전기,전자,펌웨어 | 비밀글 입니다.  4   | 2011.04.06 | 
| 108 | 일반 | 인터넷 실행이 안되요  1 | 2011.04.10 | 
| 107 | 프로그래밍 | 비밀글 입니다.  1   | 2011.04.18 | 
| 106 | 프로그래밍 | 비밀글 입니다.  1   | 2011.05.11 | 
| 105 | 전기,전자,펌웨어 | 비밀글 입니다.  3   | 2011.05.14 | 
| 104 | 프로그래밍 | MFC 테트리스 만드는것 질문  11 | 2011.05.15 | 
| 103 | 전기,전자,펌웨어 | AVR를 이용한  센서값을 LCD와 터미털프로그램에 값 전송하기  3 | 2011.05.15 | 
예제 올려 드립니다.
여기에 코드를 입력해주세요public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { // 화면 클리어 this.Refresh(); } // 마지막 마우스 클릭 위치 Point m_LastPos = new Point(0, 0); // brush 생성 System.Drawing.SolidBrush brushBlue = new System.Drawing.SolidBrush(System.Drawing.Color.Blue); private void Form1_MouseMove(object sender, MouseEventArgs e) { if ((e.Button & System.Windows.Forms.MouseButtons.Left) == System.Windows.Forms.MouseButtons.Left) { using (System.Drawing.Graphics oGraphics = this.CreateGraphics()) { if (m_LastPos != new Point(0, 0)) { oGraphics.DrawLine(new Pen(Color.Blue), e.X, e.Y, m_LastPos.X, m_LastPos.Y); } oGraphics.FillEllipse(brushBlue, e.X, e.Y, 1, 1); m_LastPos = e.Location; } } } private void Form1_MouseDown(object sender, MouseEventArgs e) { m_LastPos = e.Location; } private void pictureBox1_Click(object sender, EventArgs e) { try { using (System.Diagnostics.Process p = System.Diagnostics.Process.Start(@"http://whiteat.com/WhiteAT_Csharp")) { } } catch { } } }