Is it possible to use system.diagnostics.process.start("Process.exe") But the process would not be seen by the user? For example, I want to play an audio in the background using windows media player, the audio will play but wmp won't be visible. Is it possible?
+2
A:
Try this:
Dim startInfo As New ProcessStartInfo("mplayer2.exe")
startInfo.WindowStyle = ProcessWindowStyle.Hidden
Process.Start(startInfo)
The hidden window style. A window can be either visible or hidden. The system displays a hidden window by not drawing it. If a window is hidden, it is effectively disabled. A hidden window can process messages from the system or from other windows, but it cannot process input from the user or display output. Frequently, an application may keep a new window hidden while it customizes the window's appearance, and then make the window style Normal.
Yannick M.
2010-01-12 10:06:48
there's an error
2010-01-12 10:34:23
Put a web cam on your machine so we can read back the error.
Hans Passant
2010-01-12 10:53:19
You'll have to be a bit more specific. Which error?
Yannick M.
2010-01-12 11:14:04