마우스로 누르면서 해당지점으로 이동시
선이 그려지게 하는거 어떻게하나요?
Pen , Point ?? 이런거 써야하나요?
간단히좀 알려주세용 ㅠㅠ.. 하는방법만용 ...ㅠㅠ
폼에 PANEL도 붙여야하나요
마우스로 누르면서 해당지점으로 이동시
선이 그려지게 하는거 어떻게하나요?
Pen , Point ?? 이런거 써야하나요?
간단히좀 알려주세용 ㅠㅠ.. 하는방법만용 ...ㅠㅠ
폼에 PANEL도 붙여야하나요
| 번호 | 분류 | 제목 | 날짜 |
|---|---|---|---|
| 117 | 일반 |
WAT-CUTTENT V1 출력파형 문의
|
2015.07.30 |
| 116 | 일반 |
atmega128 ws2812b 제어
|
2015.07.29 |
| 115 | 프로그래밍 |
인더럽트 소프트웨어 질문이요!! (avr-at)
|
2015.04.09 |
| 114 | 일반 |
122 X 32 Dot 그래픽 LCD에 한글표시
|
2015.04.05 |
| 113 | 프로그래밍 |
3축가속도센서이용한 칼로리
|
2015.03.19 |
| 112 | 프로그래밍 |
ATmega8 인터럽트 다시 한번 여쭤보겠습니다 ㅠㅠ
|
2015.01.07 |
| 111 | 프로그래밍 |
ATmega8을 이용한 인터럽트 도움부탁드립니다.
|
2015.01.06 |
| 110 | 프로그래밍 |
ATmega8을 이용한 인터럽트 좀 도와주세요 ㅠㅠ
|
2015.01.06 |
| 109 | 프로그래밍 |
WAT128.h 받았는데요
|
2014.08.11 |
| 108 | 프로그래밍 |
WAT-GLCD 헤더파일 문의드립니다.
|
2014.08.07 |
| 107 | 프로그래밍 |
WAT-GLCD 초기함수 문의입니다!!
|
2014.07.18 |
| 106 | 프로그래밍 |
c# 윈도우 폼 컨트롤 순서
|
2013.11.29 |
| » | 프로그래밍 |
C# 폼에다가 마우스로 선그리기 어떻게하나요??
|
2013.11.29 |
| 104 | 프로그래밍 |
c+초고수님들중 푸실수있는분 ㅠㅠ
|
2013.11.25 |
| 103 | 일반 |
위젯 개발 완료 하셨나요?
|
2013.11.12 |
예제 올려 드립니다.
여기에 코드를 입력해주세요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 { } } }