hi everyone

I am stuck on an app

I have a app (called app_A) which execute other app (Called app_B) and it is turn as child on a Form in app_A.

when I close that Form and I want to able App_B turns child once again
App_B is not showed as the first time inside Form in App_A, here FindWinddow does't Work properly.

Api used is SetParent, FindWindow and showWindow

Code:
  appB_Hwnd= FindWindow(vbNullString, name) ''
ShowWindow(appB_Hwnd, 5)
Call SetParent(appB_Hwnd, pic.hwnd)

any help, thanks