CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2001
    Location
    India
    Posts
    12

    Problems in showing Popupmenu

    Shortcut popup menus of the child forms are not showing when I am executing a VB Script program using WScript.Exe. The code is executing the Form.PopupMenu procedure but not shown to the user. WScript program is executing as a separate thread. I am using API procedures to track the completion of the VB Script Program.
    Please tell me why it is not showing the popup menu & how can I solve this.
    Code used to run the VB Script program is given below


    Dim lStart as Long
    Dim lTimeToQuit as Long
    Dim sExeName as string
    Dim lProcessId as Long
    Dim bPastMidnight as Boolean
    Dim lExitCode as Long
    on error GoTo ERRORHANDLER

    sExeName = "C:\winnt\system32\wscript.exe " & strVBSFileName

    lEditorInstID = Shell(sExeName, vbMaximizedFocus)
    lProcessId = OpenProcess(PROCESS_QUERY_INFORMATION, false, lEditorInstID)
    Do
    Call GetExitCodeProcess(lProcessId, lExitCode)
    DoEvents
    Loop While lExitCode = STATUS_PENDING







    Another problem I have is that If I show a form from a DLL, the form name is not showing on the task bar. Even if you minimise the window, it does not show it on the task bar.


  2. #2
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: Problems in showing Popupmenu

    Just a real wild guess. I have seen this myself in which the popup is there just hiding behind another window. Move other windows around to see if it is hiding somewhere.

    John G

  3. #3
    Join Date
    Jan 2002
    Posts
    3

    similar problem

    I wrote an activex control, which pops up a dialog box with a progress bar. the dialog box is modeless one. now I call the control's methods to set the progress bar's position. This control works perfect when tested through test container. But if I create this control from a vbs file, it gives me an error, ad does not display the dialog box. can someone give me solution, help?


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