CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2011
    Posts
    3

    Exclamation 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

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: VB6 show vbModal problem in Windows 2008

    The new server has a lot more security than any other. You'll have to read up. I suggest a Virtual Machine running the old OS. You can open a REMOTE DESKTOP connection to it, and even map it's drives.

    Look up Hyper-V
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Nov 2011
    Posts
    3

    Re: VB6 show vbModal problem in Windows 2008

    Quote Originally Posted by dglienna View Post
    The new server has a lot more security than any other. You'll have to read up. I suggest a Virtual Machine running the old OS. You can open a REMOTE DESKTOP connection to it, and even map it's drives.

    Look up Hyper-V
    Thanks for suggestion, but the management instead want to use latest OS and license already bought. Hope somebody can give me some good solution for the problem.

  4. #4
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: VB6 show vbModal problem in Windows 2008

    Windows Server 2008 R2 is the latest...
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  5. #5
    Join Date
    Nov 2011
    Posts
    3

    Re: VB6 show vbModal problem in Windows 2008

    Quote Originally Posted by dglienna View Post
    Windows Server 2008 R2 is the latest...
    Yes, we are using Windows Server 2008 R2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured