user6089362
user6089362

Reputation:

Is there a way to start outlook inspector minimized with vb.net?

Following code starts notepad minimized.

Dim psi As New ProcessStartInfo("notepad")
psi.WindowStyle = ProcessWindowStyle.Minimized
Process.Start(psi)

I need a vb.net code which starts outlook inspector minimized.

or

I need a vb.net code which makes outlook inspector minimized before display.

Upvotes: 0

Views: 159

Answers (1)

Dmitry Streblechenko
Dmitry Streblechenko

Reputation: 66215

Do not use Process.Start - create a new instance of the Outlook.Application COM object (add a reference to the Outlook type library).

Upvotes: 0

Related Questions