Click here to Skip to main content
16,008,010 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Answernavigation in Code Pin
Tauseef A17-Mar-08 18:21
Tauseef A17-Mar-08 18:21 
AnswerRe: navigation in Code Pin
Mushtaque Nizamani17-Mar-08 23:43
Mushtaque Nizamani17-Mar-08 23:43 
GeneralAPI to get Application Status (running, stopped, etc) [modified] Pin
Mitch F.17-Mar-08 17:26
Mitch F.17-Mar-08 17:26 
GeneralRe: API to get Application Status (running, stopped, etc) Pin
Scott Dorman17-Mar-08 17:52
professionalScott Dorman17-Mar-08 17:52 
GeneralRe: API to get Application Status (running, stopped, etc) Pin
Mitch F.17-Mar-08 18:08
Mitch F.17-Mar-08 18:08 
GeneralRe: API to get Application Status (running, stopped, etc) Pin
Scott Dorman17-Mar-08 18:13
professionalScott Dorman17-Mar-08 18:13 
GeneralRe: API to get Application Status (running, stopped, etc) Pin
Mitch F.17-Mar-08 18:34
Mitch F.17-Mar-08 18:34 
GeneralRe: API to get Application Status (running, stopped, etc) Pin
Scott Dorman18-Mar-08 2:58
professionalScott Dorman18-Mar-08 2:58 
That is probably a better solution since you are the one starting the processes you will have access to the process Ids.

There are situations where Process.HasExited will throw a Win32Exception so you will still want to trap for that error and handle it appropriately. This mostly occurs when the exit status can't be returned for some reason.

As for MainWindowHandle returning 0, this is also a legal value. A process has a main window associated with it only if it has a graphical interface; otherwise MainWindowHandle will be 0. Take a look at WaitForInputHandle[^] to allow the process to finish startng.

Scott.

—In just two days, tomorrow will be yesterday.
—Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai

[Forum Guidelines] [Articles] [Blog]

GeneralRe: API to get Application Status (running, stopped, etc) [modified] Pin
Mitch F.18-Mar-08 8:55
Mitch F.18-Mar-08 8:55 
GeneralRe: API to get Application Status (running, stopped, etc) Pin
Scott Dorman18-Mar-08 9:50
professionalScott Dorman18-Mar-08 9:50 
Generalupdating VB form Pin
Orlando234517-Mar-08 16:12
Orlando234517-Mar-08 16:12 
GeneralRe: updating VB form Pin
Luc Pattyn17-Mar-08 16:26
sitebuilderLuc Pattyn17-Mar-08 16:26 
Generalselecting a single selectedValue with a list view control Pin
AAGTHosting17-Mar-08 11:37
AAGTHosting17-Mar-08 11:37 
GeneralRe: selecting a single selectedValue with a list view control Pin
Dave Kreskowiak18-Mar-08 3:45
mveDave Kreskowiak18-Mar-08 3:45 
Questionhow to clear MS Access synchronization list? Pin
Eric Georgiades17-Mar-08 10:08
Eric Georgiades17-Mar-08 10:08 
GeneralRe: how to clear MS Access synchronization list? Pin
Dave Kreskowiak18-Mar-08 3:42
mveDave Kreskowiak18-Mar-08 3:42 
GeneralRe: how to clear MS Access synchronization list? Pin
Eric Georgiades18-Mar-08 5:01
Eric Georgiades18-Mar-08 5:01 
QuestionDisplaying how many users are currently logged into a web application - Please help Pin
Mr Business Kid17-Mar-08 9:51
Mr Business Kid17-Mar-08 9:51 
GeneralRe: Displaying how many users are currently logged into a web application - Please help Pin
Christian Graus17-Mar-08 10:38
protectorChristian Graus17-Mar-08 10:38 
GeneralRe: Displaying how many users are currently logged into a web application - Please help Pin
Mr Business Kid17-Mar-08 10:49
Mr Business Kid17-Mar-08 10:49 
GeneralRe: Displaying how many users are currently logged into a web application - Please help Pin
Dave Kreskowiak17-Mar-08 13:01
mveDave Kreskowiak17-Mar-08 13:01 
GeneralRe: Displaying how many users are currently logged into a web application - Please help Pin
Christian Graus17-Mar-08 13:25
protectorChristian Graus17-Mar-08 13:25 
GeneralRe: Displaying how many users are currently logged into a web application - Please help [modified] Pin
nlarson1117-Mar-08 16:10
nlarson1117-Mar-08 16:10 
GeneralThere is no row at position 0 Pin
AAGTHosting17-Mar-08 7:03
AAGTHosting17-Mar-08 7:03 
GeneralRe: There is no row at position 0 Pin
Dave Kreskowiak18-Mar-08 3:03
mveDave Kreskowiak18-Mar-08 3:03 

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.