Rectangle backup;
private void checkBox_mouse_tracking_CheckedChanged(object sender, EventArgs e)
{
if (checkBox_mouse_tracking.Checked)
{
backup = Cursor.Clip;
this.Cursor = new Cursor(Cursor.Current.Handle);
Cursor.Position = new Point(this.Location.X+ label_mouse_tracking.Location.X , this.Location.Y + label_mouse_tracking.Location.Y);
Point p = new Point(this.Location.X + label_mouse_tracking.Location.X+7, this.Location.Y + label_mouse_tracking.Location.Y+30);
Cursor.Clip = new Rectangle(p, label_mouse_tracking.Size);
}
else
{
Cursor.Clip = backup;
}
}
}
'Programming > C#을즐기자' 카테고리의 다른 글
windowCE C#에서 Sleep time 설정 (0) | 2010.07.29 |
---|---|
C# compactframwork SendMessage사용하기 (0) | 2010.06.27 |
WindowsCE C#에서 registry 사용하기 (0) | 2010.06.26 |
Windows CE C#에서 프로그램 경로 얻어오기 (0) | 2010.06.26 |
compack framework (0) | 2010.06.05 |
dataGridView에 CheckBoxColumn 하드코딩으로 넣기 (0) | 2008.08.21 |
Visual Studio 2008 and .NET 3.5 Released (0) | 2008.02.26 |
닷넷Library 소스공개 (0) | 2008.02.26 |