I have the code below to start a process in minimized state. It does work
Dim psi As New ProcessStartInfo("notepad")
psi.WindowStyle = ProcessWindowStyle.Minimized
Process.Start(psi)
I want to combine them into one line, it start the process but not in minimized state. how do I fix this? TIA
Process.Start("notepad").StartInfo.WindowStyle = ProcessWindowStyle.Minimized