We recently moving a old system which develop under VB6 to Windows 2008, we facing some problem when a main MDI form calling an ActiveX EXE form (another EXE, call by set obj = CREATEOBJECT("obj.clsCallForm")) in "vbModal" mode, the application some time (not all time) will be like "Hang" (both the main MDI and the ActiveX form cannot click, and the windows look like Hang can't click anything), then we try click on the Windows Start button (by press on the keyboard), after the Start Menu pop up then the ActiveX form can use already. But when click Ctrl+Alt+Del the ActiveX form will hide at the back (not show up), then must go to Task Manager at the "Process" tab End the process. Wondering why? any solution for this?
*In the ActiveX form we use below code set the main MDI to bottom before show the new form (in vbModal):
SetWindowPos hwMainMDI&, 1, 0, 0, 0, 0, &H80 'Hide Form
SetWindowPos hwMainMDI&, 1, 0, 0, 0, 0, &H40 'Show Form
SetWindowPos hwMainMDI&, 1, 0, 0, 0, 0, &H10