VBDotNetProgrammer
Programmer
Hi, im using the following code to launch outlook
{
Dim proc As New Process()
Dim pRunningProcesses() As System.Diagnostics.Process = System.Diagnostics.Process.GetProcessesByName("outlook"
if pRunningProcesses.Length = 0 Then
'Make outlook invisible
proc.StartInfo.FileName = "outlook.exe"
proc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
proc.Start()
End If
}
The problem is that where im setting the window style to hidden works on my development machine and hides the app but any other machine i test it on it doesnt!
It's like it ignores the
proc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
command all together!
Anyone know why this is?
Thanks
{
Dim proc As New Process()
Dim pRunningProcesses() As System.Diagnostics.Process = System.Diagnostics.Process.GetProcessesByName("outlook"
if pRunningProcesses.Length = 0 Then
'Make outlook invisible
proc.StartInfo.FileName = "outlook.exe"
proc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
proc.Start()
End If
}
The problem is that where im setting the window style to hidden works on my development machine and hides the app but any other machine i test it on it doesnt!
It's like it ignores the
proc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
command all together!
Anyone know why this is?
Thanks