I am having a problem with the following code. When the window is activated it displays for a brief second then goes to the task bar (minimized); I then need to click the task bar item for the window to reappear. What can I do so the window does not run minimized? I have tried the following with no luck.
ACTIVATE WINDOW oWnd2 ON INIT BringWindowToTop( oWnd2:hWnd )
ACTIVATE WINDOW oWnd2 ON INIT ShowWindow( oWnd2, 1)
ACTIVATE WINDOW oWnd2 ON INIT ShowWindow( oWnd2, 5 )
ACTIVATE WINDOW oWnd2 ON INIT ShowWindow( oWnd2, 9)
ACTIVATE WINDOW oWnd2 NORMAL
// Source below...
MENU oMenu
MENUITEM "&Close" ACTION ( oWnd2:End() )
ENDMENU
DEFINE WINDOW oWnd2 FROM 0, 0 TO 40, 85 MENU oMenu
oActiveX = TActiveX():New( oWnd2, "Shell.Explorer" )
oWnd2:oClient = oActiveX
oActiveX:Do( "Navigate2", cAesdd + cHan )
ACTIVATE WINDOW oWnd2 NORMAL
Thank you,