RESTORING MINIMIZED WINDOWS ?

Dec 9, 2010 at 7:59 AM

Hi ,

Am developing windows ce application in vs 2008, i have 3 Forms in my application, in main form i have 2 links for that two forms, in another 2 forms i have minimize button, i can minimize the window,

once i click form2 link it opens and i minimized it, and then am click the form 2 again, but its not getting my running window, it opens another form2 ?

i cant restore the windows which is running back of main window ?

is there any way to restore my running process ?

i have tried ?

 

 

 IntPtr winHandle = System.Diagnostics.Process.GetCurrentProcess().MainWindowHandle;
   

   ShowWindow(winHandle, SW_RESTORE);

 

but it dint work ?