0

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.

  • The answer in that question is not specific to notepad. Did you try it? What happened? –  Apr 29 '16 at 20:52

1 Answers1

0

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

Dmitry Streblechenko
  • 62,942
  • 4
  • 53
  • 78
  • Why do you need an inspector to be visible even if it is minimized? Are you manipulating the message body using the Word Object Model? – Dmitry Streblechenko Apr 30 '16 at 02:59
  • See http://stackoverflow.com/questions/17195207/including-pictures-in-an-outlook-email – Dmitry Streblechenko Apr 30 '16 at 15:45
  • 1. What does this have to do with OutlookSpy? OutlookSpy is a dev tool, it is for you to see things inside Outlook, not for the end users. 2. Outlook images are **always** attachments unless the HTML body refers to an externally hosted image on a web server. 3. No, there isn't one. – Dmitry Streblechenko May 01 '16 at 03:35
  • Why? Just use the code from the link http://stackoverflow.com/questions/17195207/including-pictures-in-an-outlook-email – Dmitry Streblechenko May 01 '16 at 07:08
  • I think I am repeating myself - Outlook does not have inline images. They are always attachments. Take a look for a yourself in OutlookSpy - select a message with an image, click IMessage button, go to the GetAttachmentTable tab. – Dmitry Streblechenko May 01 '16 at 17:14