Click here to Skip to main content
15,889,281 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Type conversion? Pin
phil.o2-Dec-10 22:46
professionalphil.o2-Dec-10 22:46 
QuestionDoes AnyBody Faced This Problem? While sending E-Mails to Multiple clients... Pin
Paramu19731-Dec-10 1:00
Paramu19731-Dec-10 1:00 
AnswerRe: Does AnyBody Faced This Problem? While sending E-Mails to Multiple clients... Pin
Luc Pattyn1-Dec-10 2:36
sitebuilderLuc Pattyn1-Dec-10 2:36 
GeneralRe: Does AnyBody Faced This Problem? While sending E-Mails to Multiple clients... Pin
Paramu19731-Dec-10 2:42
Paramu19731-Dec-10 2:42 
QuestionMessage Closed Pin
30-Nov-10 14:37
Josh668030-Nov-10 14:37 
AnswerRe: How would I check if a certain process is running? Pin
Dave Kreskowiak30-Nov-10 15:10
mveDave Kreskowiak30-Nov-10 15:10 
QuestionMessage Closed Pin
1-Dec-10 10:44
Josh66801-Dec-10 10:44 
AnswerRe: How would I check if a certain process is running? Pin
Dave Kreskowiak1-Dec-10 14:14
mveDave Kreskowiak1-Dec-10 14:14 
You've overcomplicated this. I have no idea what you were doing with the ConvertAll and the ProcessToProcess thing. GetProcessesByName returns an array of Process objects. If you expect only one instance of the process you're looking for, check the size of the returned array for 1 instance and just check the HasExisted property of the one instance. If you're expecting that you can have more than one instance, you'll have to complicate the code a bit.
Dim processes As Process() = Process.GetProcessesByName("ProcessName")
If processes.Length = 1 Then
    Do While processes(0).HasExited = False
        ' Wait half a second and check HasExited again.
        Thread.Sleep(500)
    Loop
End If

' The process has exited.  now you can do whatever you need.


GeneralMessage Closed Pin
1-Dec-10 14:56
Josh66801-Dec-10 14:56 
GeneralRe: How would I check if a certain process is running? Pin
Dave Kreskowiak1-Dec-10 18:01
mveDave Kreskowiak1-Dec-10 18:01 
AnswerRe: How would I check if a certain process is running? Pin
Rajesh Anuhya30-Nov-10 22:34
professionalRajesh Anuhya30-Nov-10 22:34 
QuestionRe: How would I check if a certain process is running? Pin
Luc Pattyn1-Dec-10 2:39
sitebuilderLuc Pattyn1-Dec-10 2:39 
QuestionAdd data to database Pin
ivo7530-Nov-10 8:23
ivo7530-Nov-10 8:23 
AnswerRe: Add data to database Pin
AspDotNetDev30-Nov-10 10:14
protectorAspDotNetDev30-Nov-10 10:14 
GeneralRe: Add data to database Pin
ivo7530-Nov-10 10:52
ivo7530-Nov-10 10:52 
AnswerRe: Add data to database Pin
Luc Pattyn30-Nov-10 11:16
sitebuilderLuc Pattyn30-Nov-10 11:16 
GeneralRe: Add data to database Pin
ivo7530-Nov-10 11:27
ivo7530-Nov-10 11:27 
Questionbegintrans, commit and rollback Pin
mabrahao30-Nov-10 2:06
mabrahao30-Nov-10 2:06 
AnswerRe: begintrans, commit and rollback Pin
Goutam Patra30-Nov-10 2:36
professionalGoutam Patra30-Nov-10 2:36 
QuestionRe: begintrans, commit and rollback Pin
Eddy Vluggen30-Nov-10 3:06
professionalEddy Vluggen30-Nov-10 3:06 
AnswerRe: begintrans, commit and rollback Pin
Goutam Patra30-Nov-10 18:27
professionalGoutam Patra30-Nov-10 18:27 
GeneralRe: begintrans, commit and rollback Pin
Rajesh Anuhya30-Nov-10 22:40
professionalRajesh Anuhya30-Nov-10 22:40 
GeneralRe: begintrans, commit and rollback Pin
Goutam Patra30-Nov-10 23:03
professionalGoutam Patra30-Nov-10 23:03 
GeneralRe: begintrans, commit and rollback Pin
Gregory Gadow30-Nov-10 3:40
Gregory Gadow30-Nov-10 3:40 
AnswerRe: begintrans, commit and rollback Pin
Eddy Vluggen30-Nov-10 3:05
professionalEddy Vluggen30-Nov-10 3:05 

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.