|
-
November 18th, 2011, 05:09 AM
#1
VB6 show vbModal problem in Windows 2008
Hi,
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
Thanks & Regards,
Wilson
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|