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!

Opening an application invisibly?

Status
Not open for further replies.

VBDotNetProgrammer

Programmer
Jul 9, 2003
50
GB
Hi does anyone know if its possible to have an instance of outlook or any application for that matter open invisibly?
 
Code:
Dim p As New Process

p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden

p.StartInfo.FileName = "outlook.exe"

p.Start()
Do not use
Code:
p.Start("outlook.exe")
even after setting the window style to hidden because the window style will be ignored.
 
Hi thanks for the help and that looks like what i want but it doesnt actually make the app invisible at all. Is something missing perhaps?
 
My apologies - I tested it using Excel and it opened invisibly. Having now tried Outlook, it does indeed open in a normal window.

It must be possible to open a hidden Outlook process because ActiveSync does it when synching a PocketPC.

I'll have another look when I get 5 mins...

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top