메뉴 바로가기

서브메뉴 바로가기

본문 바로가기

logo

묻고 답하기
조회 수 15,798 추천 수 0 댓글 1
?

단축키

Prev이전 문서

Next다음 문서

위로 아래로 댓글로 가기 인쇄 쓰기 목록
?

단축키

Prev이전 문서

Next다음 문서

위로 아래로 댓글로 가기 인쇄 쓰기 목록
?
  • 예제 올려 드립니다.



    제목 없음.png  



    여기에 코드를 입력해주세요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 { }
            }
        }


  1. atmega128 ws2812b 제어

    Date2015.07.29 Category :일반 Reply1
    Read More
  2. 인더럽트 소프트웨어 질문이요!! (avr-at)

    Date2015.04.09 Category :프로그래밍 Reply1
    Read More
  3. 122 X 32 Dot 그래픽 LCD에 한글표시

    Date2015.04.05 Category :일반 Reply1
    Read More
  4. 3축가속도센서이용한 칼로리

    Date2015.03.19 Category :프로그래밍 Reply1
    Read More
  5. ATmega8 인터럽트 다시 한번 여쭤보겠습니다 ㅠㅠ

    Date2015.01.07 Category :프로그래밍 Reply1
    Read More
  6. ATmega8을 이용한 인터럽트 도움부탁드립니다.

    Date2015.01.06 Category :프로그래밍 Reply1
    Read More
  7. ATmega8을 이용한 인터럽트 좀 도와주세요 ㅠㅠ

    Date2015.01.06 Category :프로그래밍 Reply1
    Read More
  8. WAT128.h 받았는데요

    Date2014.08.11 Category :프로그래밍 Reply1
    Read More
  9. WAT-GLCD 헤더파일 문의드립니다.

    Date2014.08.07 Category :프로그래밍 Reply3
    Read More
  10. WAT-GLCD 초기함수 문의입니다!!

    Date2014.07.18 Category :프로그래밍 Reply2
    Read More
  11. c# 윈도우 폼 컨트롤 순서

    Date2013.11.29 Category :프로그래밍 Reply1
    Read More
  12. C# 폼에다가 마우스로 선그리기 어떻게하나요??

    Date2013.11.29 Category :프로그래밍 Reply1
    Read More
  13. c+초고수님들중 푸실수있는분 ㅠㅠ

    Date2013.11.25 Category :프로그래밍 Reply1
    Read More
  14. 위젯 개발 완료 하셨나요?

    Date2013.11.12 Category :일반 Reply1
    Read More
  15. avr atmega128 질문입니다.

    Date2013.11.07 Category :전기,전자,펌웨어 Reply1
    Read More
목록
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 Next
/ 11