سلام دوستان من با ای پی ای میخوام موس رو درون فرم قفل کنم اما کار نمیکنه لطفا نکاه کنید
[DllImport("user32.dll")]
staticexternint SetCapture (
int hwnd);
[DllImport("user32.dll", EntryPoint="FindWindowA")]
staticexternint FindWindow (string lpClassName, string lpWindowName);
privatevoid button1_Click(object sender, EventArgs e)
{
int a = FindWindow(null, "form11");//find windows
SetCapture(a); // set
}