C# picture box 내 mouse 좌표 계산 시 private void pictureBox1_Click(object sender, EventArgs e) { if (sender.GetType() == pictureBox1.GetType()) { PictureBox pic = (PictureBox)sender; int x = Control.MousePosition.X; int y = Control.MousePosition.Y; Point mousePos = new Point(x, y); //프로그램 내 좌표 Point mousePosPtoClient = pic.PointToClient(mousePos); //picbox 내 좌표 Point mousePosPtoScreen = pic.PointToScreen(mousePos); //스크린 내 좌표 (좌우 .. 더보기 이전 1 ··· 3 4 5 6 7 8 9 ··· 2275 다음