|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Stopping ProcessHi EveryBody:
As you know we can start process by using: System.dignostics.process.start("ProcessName") But my question is How can I stop running process ? Any help will be appreciated regard's Husam Try this:
' Import Imports System.Diagnostics Dim p As Process Dim pr As Process pr = p.Start("Notepad") MessageBox.Show("Notepad Started") If Not (pr Is Nothing) Then pr.Kill() End If Crouchie1998 BA (HONS) MCP MCSE "Crouchie1998" <crouchie1998@spamcop.net> schrieb: I suggest to use 'CloseMainWindow' instead of 'Kill' for Windows >pr = p.Start("Notepad") >[...] > pr.Kill() applications. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/>
Determine if "Hide extensions for known file types" is active
Need help updating table What scope is best for defining Enum type? VB6 to VB.Net Conversion Selecting specific columns from a dataview? How to overload method of third party component? creating an array as property of a class Limiting the directories somebody can browse to..... StringBuilder size question? Simple Reflection Question |
|||||||||||||||||||||||