|
-
October 11th, 2001, 06:06 AM
#1
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.
-
October 11th, 2001, 09:41 AM
#2
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
-
January 10th, 2002, 02:04 PM
#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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|