Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Do to detect outlook is running or not in client?

Do to detect outlook is running or not in client?

Scheduled Pinned Locked Moved .NET (Core and Framework)
helptutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Eric Vonjacson
    wrote on last edited by
    #1

    Hi, I have one client application that have send email function which use the EmailInterop. The code is like this: NMailItem itemEmail = EmailInterop.OpenEmailItem("", "", "", Enums.EmailType.Normal); But if the outlook is not running in the client, the application have problem. I want to prevent user send mail if the outlook is not running now. So how to detect the outlook is running or not in the client? thanks.

    R 1 Reply Last reply
    0
    • E Eric Vonjacson

      Hi, I have one client application that have send email function which use the EmailInterop. The code is like this: NMailItem itemEmail = EmailInterop.OpenEmailItem("", "", "", Enums.EmailType.Normal); But if the outlook is not running in the client, the application have problem. I want to prevent user send mail if the outlook is not running now. So how to detect the outlook is running or not in the client? thanks.

      R Offline
      R Offline
      Rolando CC
      wrote on last edited by
      #2

      Something like:

      For Each p As Process In Process.GetProcesses
      If p.ProcessName = "OUTLOOK" Then
      Console.WriteLine(p.ProcessName & " / " & p.MainWindowTitle)
      End If
      Next
      Console.ReadLine()

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups