Click here to Skip to main content
16,017,745 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Using a C++ dll in VB.net Pin
Christian Graus3-May-05 14:48
protectorChristian Graus3-May-05 14:48 
GeneralRe: Using a C++ dll in VB.net Pin
Reanalyse3-May-05 16:01
Reanalyse3-May-05 16:01 
GeneralRe: Using a C++ dll in VB.net Pin
Christian Graus3-May-05 16:11
protectorChristian Graus3-May-05 16:11 
GeneralApp config help Pin
Joey Picerno2-May-05 10:23
Joey Picerno2-May-05 10:23 
GeneralRe: App config help Pin
mike2k52-May-05 11:58
mike2k52-May-05 11:58 
GeneralRe: App config help Pin
Joey Picerno2-May-05 12:51
Joey Picerno2-May-05 12:51 
GeneralRe: App config help Pin
Het21092-May-05 18:43
Het21092-May-05 18:43 
GeneralKilling child processes Pin
Sam Marrocco2-May-05 8:29
Sam Marrocco2-May-05 8:29 
I'm running an .exe file (which I did not create) using a Process class and it's accompanying .StartInfo data as follows:

m_Process = New Process

With m_Process.StartInfo
.FileName = "cmd.exe"
.Arguments = "/C " & CompleteCommandLine
.UseShellExecute = False
.CreateNoWindow = True
.WindowStyle = ProcessWindowStyle.Normal
.RedirectStandardOutput = False
.RedirectStandardError = False
.RedirectStandardInput = False
End With

m_Process.EnableRaisingEvents = True
AddHandler m_Process.Exited, AddressOf UniqueProcessThread_Exited

m_Process.Start()
G_RenderProcessID = m_Process.Id

This allows me to have an asynchronous process that runs my command-line application, but I can get the processid in case I need to kill the process prematurely.

However, the killing of this process by it's id *only* kills my process--not any child tasks that the .exe may have spawned. Is there a way to forcibly kill *every* task that has been spawned by my process using only the processid I have using vb.net?

GeneralGet variables set in a SUB Pin
mike2k52-May-05 8:19
mike2k52-May-05 8:19 
GeneralRe: Get variables set in a SUB Pin
Het21092-May-05 18:48
Het21092-May-05 18:48 
GeneralSeperate decimal from whole number Pin
vertig07302-May-05 7:19
vertig07302-May-05 7:19 
GeneralRe: Seperate decimal from whole number Pin
chrismerrill2-May-05 7:49
chrismerrill2-May-05 7:49 
GeneralMortgage calulator loop question vb.net Pin
vb.net challenged2-May-05 6:16
vb.net challenged2-May-05 6:16 
GeneralHTML to IMAGE Pin
woklet2-May-05 5:02
woklet2-May-05 5:02 
GeneralStream problems Pin
CrazyEd161-May-05 23:35
CrazyEd161-May-05 23:35 
GeneralRe: Stream problems Pin
GeneralDisorder2-May-05 0:37
GeneralDisorder2-May-05 0:37 
GeneralProb in transferring ASP.NET Web Application Pin
vishalmishra1-May-05 23:15
vishalmishra1-May-05 23:15 
GeneralRe: Prob in transferring ASP.NET Web Application Pin
Christian Graus2-May-05 14:01
protectorChristian Graus2-May-05 14:01 
GeneralRe: Prob in transferring ASP.NET Web Application Pin
vishalmishra3-May-05 4:26
vishalmishra3-May-05 4:26 
GeneralRe: Prob in transferring ASP.NET Web Application Pin
Christian Graus3-May-05 13:18
protectorChristian Graus3-May-05 13:18 
GeneralCrystal Reports Pin
Madni Abbasi1-May-05 20:43
Madni Abbasi1-May-05 20:43 
Questionhow to assign NULL to Date Field ? Pin
Madni Abbasi1-May-05 20:37
Madni Abbasi1-May-05 20:37 
AnswerRe: how to assign NULL to Date Field ? Pin
Madni Abbasi1-May-05 21:11
Madni Abbasi1-May-05 21:11 
GeneralPicture box binding problem Pin
Binary01101-May-05 20:33
Binary01101-May-05 20:33 
GeneralRe: Picture box binding problem Pin
Madni Abbasi1-May-05 20:55
Madni Abbasi1-May-05 20:55 

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.