How to start an invisible process in vb.net?

Is it possible to use system.diagnostics.process.start ("Process.exe") But the user would not see this process? For example, I want to play audio in the background using a Windows media player, the sound will play, but wmp will not be visible. Is it possible?

+4
source share
1 answer

Try the following:

Dim startInfo As New ProcessStartInfo("mplayer2.exe") startInfo.WindowStyle = ProcessWindowStyle.Hidden Process.Start(startInfo) 

ProcessWindowStyle.Hidden :

Hidden window style. The window may be visible or hidden. the system displays a hidden window, rather than drawing it. If the window is hidden, it is effectively disabled. A hidden window can process messages from the system or from other windows, but it cannot handle user input or display output. Often, an application can keep a new window hidden when it adjusts the window, and then the window style is Normal.

+11
source

All Articles