المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : managed code that will do the same as SetForegroundWindow



C# Programming
02-05-2010, 07:13 AM
Does anyone know any way to set a process to be the foreground window in managed code, I have a Process object and need to set that process to be the front form. I was previously using the user32.dll function SetForegroundWindow(p.MainWindowHandle);, but I know have a requirement to use only managed code. Any ideas?