13-02-19, 06:13 PM
(13-02-19, 12:28 PM)ابراهيم ايبو كتب :السلام عليكم اخي الكريمتفضل هذا هو الكود بالسي شاربكود :
private void button1_Click(object sender, EventArgs e)
{
var rc = pictureBox1.RectangleToScreen(new Rectangle(Point.Empty, pictureBox1.ClientSize));
Cursor.Position = new Point(Convert.ToInt32(rc.Left + rc.Width / 2.0), Convert.ToInt32(rc.Top + rc.Height / 2.0));
Cursor.Clip = rc;
pictureBox1.Capture = true;
}
شكرا اخي
الله يحفظك
