Click here to Skip to main content
15,902,634 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralTrapping non VB windows opening/closing Pin
Simes22-Dec-03 0:09
Simes22-Dec-03 0:09 
GeneralRe: Trapping non VB windows opening/closing Pin
cnurse23-Dec-03 3:32
cnurse23-Dec-03 3:32 
GeneralRe: Trapping non VB windows opening/closing Pin
cnurse23-Dec-03 3:33
cnurse23-Dec-03 3:33 
Generalsecurity problems Pin
pnpfriend21-Dec-03 5:51
pnpfriend21-Dec-03 5:51 
GeneralRe: security problems Pin
Shinde Vikram27-Dec-03 3:56
Shinde Vikram27-Dec-03 3:56 
GeneralRe: security problems Pin
pnpfriend28-Dec-03 4:21
pnpfriend28-Dec-03 4:21 
GeneralRe: security problems Pin
Shinde Vikram28-Dec-03 16:44
Shinde Vikram28-Dec-03 16:44 
Generalexcel application process still runnig afer it get closed Pin
pnpfriend21-Dec-03 5:06
pnpfriend21-Dec-03 5:06 
I wrote excel automation using VB.Net
the program takes exiting excel file name and open it, do some fixing and code for the file and let the user printpreview it. Then the program call WaitForSingleObject(hwnd,INFINITE) to pause the program until the user close the excel application.
The problem:
WaitForSingleObject() is waiting forever because the excel application process is still exit ( if you go to process of TaskManager you will see excel is still there) eventhough the user close excel and it is not on the screen anymore..

why the excel application didn't get closed and how can i make sure the excel application get closed when the user closed the application?


GeneralRe: excel application process still runnig afer it get closed Pin
Dave Kreskowiak21-Dec-03 6:24
mveDave Kreskowiak21-Dec-03 6:24 
GeneralRe: excel application process still runnig afer it get closed Pin
pnpfriend21-Dec-03 7:07
pnpfriend21-Dec-03 7:07 
GeneralRe: excel application process still runnig afer it get closed Pin
Dave Kreskowiak21-Dec-03 7:41
mveDave Kreskowiak21-Dec-03 7:41 
GeneralRe: excel application process still runnig afer it get closed Pin
pnpfriend21-Dec-03 8:22
pnpfriend21-Dec-03 8:22 
GeneralRe: excel application process still runnig afer it get closed Pin
Dave Kreskowiak21-Dec-03 15:36
mveDave Kreskowiak21-Dec-03 15:36 
GeneralRe: excel application process still runnig afer it get closed Pin
Charlie Williams22-Dec-03 5:02
Charlie Williams22-Dec-03 5:02 
GeneralRe: excel application process still runnig afer it get closed Pin
Dave Kreskowiak22-Dec-03 5:16
mveDave Kreskowiak22-Dec-03 5:16 
Generalcustom property editor Pin
cnurse21-Dec-03 3:32
cnurse21-Dec-03 3:32 
GeneralWhere can i get articles about Text file handling in Vb.Net Pin
MJay21-Dec-03 3:31
MJay21-Dec-03 3:31 
GeneralRe: Where can i get articles about Text file handling in Vb.Net Pin
Mike Ellison22-Dec-03 6:34
Mike Ellison22-Dec-03 6:34 
Generala newbie with a question about .net SDK Pin
Dave Pursey20-Dec-03 17:14
Dave Pursey20-Dec-03 17:14 
GeneralRe: a newbie with a question about .net SDK Pin
Corinna John21-Dec-03 10:10
Corinna John21-Dec-03 10:10 
Questionxmltextwriter how to append new elements? Pin
rubs20-Dec-03 13:08
rubs20-Dec-03 13:08 
Generalemail Pin
Michael Bailey20-Dec-03 11:38
Michael Bailey20-Dec-03 11:38 
GeneralRe: email Pin
Dave Kreskowiak20-Dec-03 12:41
mveDave Kreskowiak20-Dec-03 12:41 
GeneralRe: email Pin
Michael Bailey20-Dec-03 13:27
Michael Bailey20-Dec-03 13:27 
GeneralRe: email Pin
Dave Kreskowiak21-Dec-03 6:19
mveDave Kreskowiak21-Dec-03 6:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.