Invoking Process without a window.

Invoking a Process without a window and kill the process.

Imports System.Configuration

Dim myProcess As Process
myProcess = New Process
myProcess.EnableRaisingEvents = True
myProcess.StartInfo.FileName = "ExePath along with ExeName"
myProcess.StartInfo.Arguments = "Process Arguments"

myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden

// To hide the process with out new window we need to use the following statement.
myProcess.StartInfo.CreateNoWindow = True

//To Start the process

To Kill the process


No responses found. Be the first to comment...

  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name: