MSGBOX displays running as a process

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kcollins3133
    New Member
    • Feb 2008
    • 2

    #1

    MSGBOX displays running as a process

    Hi Everyone. I have a VB6 program in which I display errors using MSGBOX's. When I run the program from an Icon or a .EXE (as an application) the messages are displayed to the user, but when I run it as a scheduled task (as a process) the messages are not displayed. I do use the vbSystemModal parameter to bring the message in front of all applications that are running. WHY and is there a way to make this work when running as a process.
  • lotus18
    Contributor
    • Nov 2007
    • 865

    #2
    Post some of your codes here for the reference of our experts here ^ ^

    Comment

    • QVeen72
      Recognized Expert Top Contributor
      • Oct 2006
      • 1445

      #3
      Hi,

      "vbSystemMo dal" flag is a carry over from 16-bit Visual Basic.
      System modal windows are not supported in the Win32 (WinXP Win2000 and all above)
      In all such Cases, you first need to Bring Your Application Form on the Top of other Windows, and display the message . To do this, you need "SetWindowP os" API

      Regards
      Veena

      Comment

      • kcollins3133
        New Member
        • Feb 2008
        • 2

        #4
        Veena,

        Thanks for your help! I will give that a try.

        Kathy


        Originally posted by QVeen72
        Hi,

        "vbSystemMo dal" flag is a carry over from 16-bit Visual Basic.
        System modal windows are not supported in the Win32 (WinXP Win2000 and all above)
        In all such Cases, you first need to Bring Your Application Form on the Top of other Windows, and display the message . To do this, you need "SetWindowP os" API

        Regards
        Veena

        Comment

        Working...