ali800
دوشنبه 20 آبان 1392, 15:42 عصر
با سلام من میخواستم از دستورات aPi در سی شارپ استفاده کنم هرکاری میکنم نتیجه نمیگیرم اساتید محترم راهنمایی کنید .
تابع
findwindows - closewindows - destorywindows - flashwindows
کسی بلده یه مثال از این 4 تا بزنه
مثلا برای فایند ویندوز
[DllImport("user32.dll", SetLastError = true)]
static extern IntPtr FindWindow(string lpClassName, string lpWindowName);
و در یک دکمه اینو میزارم
FindWindow(Null,"computer)"
اما جواب نمیده ::D
<مثلا title پنجره کامپیوتر که title ما کامپیوتر هست را پیدا کنه و اونو ماکزیمم کنه یا نشونش بده که در حال اجر یا بازه>
تابع
findwindows - closewindows - destorywindows - flashwindows
کسی بلده یه مثال از این 4 تا بزنه
مثلا برای فایند ویندوز
[DllImport("user32.dll", SetLastError = true)]
static extern IntPtr FindWindow(string lpClassName, string lpWindowName);
و در یک دکمه اینو میزارم
FindWindow(Null,"computer)"
اما جواب نمیده ::D
<مثلا title پنجره کامپیوتر که title ما کامپیوتر هست را پیدا کنه و اونو ماکزیمم کنه یا نشونش بده که در حال اجر یا بازه>