12-02-19, 03:37 AM
اريد اتاية هذا الكود الي بالمشاركة التالية الى السي شارب
قمت بتحويله لكن به خطء
كود :
private void Button1_Click(object sender, EventArgs e)
{
var rc = PictureBox1.RectangleToScreen(new Rectangle(Point.Empty, PictureBox1.ClientSize));
Cursor.Position = new Point(rc.Left + rc.Width / 2.0, rc.Top + rc.Height / 2.0);
Cursor.Clip = rc;
PictureBox1.Capture = true;
}
اتمنى من الاخوة التصحيح