I need to lock the entire form if the execution of a perticular process is in progress.
My form contains many controls like buttons, comboboxes. all the controls should be in disabled state if the process is running
Now i'n using the two methods from user32.dll
[DllImport("user32.dll")]
public static extern IntPtr FindWindow(String sClassName, String sAppName);
[DllImport("user32.dll")]
public static extern bool EnableWindow(IntPtr hwnd, bool bEnable);
but its not working properly.
Is there any other idea to do this
Thanks in advance