Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outlook object settings acting weirdly!!

Status
Not open for further replies.

VBDotNetProgrammer

Programmer
Jul 9, 2003
50
GB
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top