I am currently using the code below to open outlook automatically.
However, this simply opens a new instance regardless of whether it is already open or not.Code:Dim psInfo As New System.Diagnostics.ProcessStartInfo("OUTLOOK.EXE") psInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Maximized Dim myProcess As Process = System.Diagnostics.Process.Start(psInfo)
I'd like to check if there is an existing instance, and if so don't open outlook.
How can I do this please ?


Reply With Quote
