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. C#
  4. Outlook dev question

Outlook dev question

Scheduled Pinned Locked Moved C#
questionregexhelplounge
4 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.
  • S Offline
    S Offline
    szukuro
    wrote on last edited by
    #1

    I'm writing an Outlook Add-in using VSTO 2005. However there's a slight problem; when I attach event handlers to the CustomAction event of MailItems sometimes the function doesn't get called. There are cases when attaching them more times (at run-time) overcomes this problem, however sometimes it looks like they don't "stick", meaning I click a custom action button once and it works, then I push it a second time and now the handling function does not get called. I even fail to recognize the pattern in this random behavior. Has anyone else faced similar issues, and if so how do I overcome them?

    D 1 Reply Last reply
    0
    • S szukuro

      I'm writing an Outlook Add-in using VSTO 2005. However there's a slight problem; when I attach event handlers to the CustomAction event of MailItems sometimes the function doesn't get called. There are cases when attaching them more times (at run-time) overcomes this problem, however sometimes it looks like they don't "stick", meaning I click a custom action button once and it works, then I push it a second time and now the handling function does not get called. I even fail to recognize the pattern in this random behavior. Has anyone else faced similar issues, and if so how do I overcome them?

      D Offline
      D Offline
      dotnetcdr
      wrote on last edited by
      #2

      I recently did a combination plugin for Excel/Outlook using the Office 2007 PIAs and VSTO2005... I ran into the same behavior with BOTH applications... What I finally had to end up doing was after each event was fired, I rewired the event, just to be on the safe side because I could not predict when and where it would happen. It's a nasty thing to have to do, but it's no worse than having to switch a 1-based index just to code to Office apps. :laugh: HTH, ~dnc

      S 2 Replies Last reply
      0
      • D dotnetcdr

        I recently did a combination plugin for Excel/Outlook using the Office 2007 PIAs and VSTO2005... I ran into the same behavior with BOTH applications... What I finally had to end up doing was after each event was fired, I rewired the event, just to be on the safe side because I could not predict when and where it would happen. It's a nasty thing to have to do, but it's no worse than having to switch a 1-based index just to code to Office apps. :laugh: HTH, ~dnc

        S Offline
        S Offline
        szukuro
        wrote on last edited by
        #3

        That I already tried - even so the the problem still remains :sigh:

        1 Reply Last reply
        0
        • D dotnetcdr

          I recently did a combination plugin for Excel/Outlook using the Office 2007 PIAs and VSTO2005... I ran into the same behavior with BOTH applications... What I finally had to end up doing was after each event was fired, I rewired the event, just to be on the safe side because I could not predict when and where it would happen. It's a nasty thing to have to do, but it's no worse than having to switch a 1-based index just to code to Office apps. :laugh: HTH, ~dnc

          S Offline
          S Offline
          szukuro
          wrote on last edited by
          #4

          I just found the answer! http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1581380&SiteID=1[^]

          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