none
Handling Reminders RRS feed

  • Question

  • Hello,

    Im trying to make an Outlook AddIn handling reminders, i want to capture event of reminder window poping up , and make this window appear above all others. Here is my test code of handling outlook inspectors:

    Imports Microsoft.Office.Interop.Outlook

    Public Class ThisAddIn
        Private WithEvents inspectors As Outlook.Inspectors
        Private Sub ThisAddIn_Startup() Handles Me.Startup
            inspectors = Me.Application.Inspectors
        End Sub
        Private Sub inspectors_NewInspector(ByVal Inspector As Microsoft.Office.Interop.Outlook.Inspector) Handles inspectors.NewInspector
            MsgBox("asdasdasd")
            Dim mailItem As Outlook.MailItem = TryCast(Inspector.CurrentItem, Outlook.MailItem)
            If Not (mailItem Is Nothing) Then
                If mailItem.EntryID Is Nothing Then
                    MsgBox("asdasdasd")
                End If
            End If

        End Sub
        Private Sub ThisAddIn_Shutdown() Handles Me.Shutdown

        End Sub

    End Class

    It captures NewMail window successfully but gives no reaction on reminder window.

    Can someone point me to the right direction

    PS. I've read the MSDN help page but can't seem to get a clue

    Thanks for the help

    Tuesday, September 5, 2017 11:20 AM

Answers

  • Hi MadonFPGA,

    I think you need use Application.Reminder event to capture reminder window pop up.

    Here is the example.

    Public Class ThisAddIn
    
        Private Sub ThisAddIn_Startup() Handles Me.Startup
    
        End Sub
    
        Private Sub ThisAddIn_Shutdown() Handles Me.Shutdown
    
        End Sub
    
        Private Sub Application_Reminder(Item As Object) Handles Application.Reminder
    
            MsgBox("Reminder Captured")
    
        End Sub
    
    End Class

    Best Regards,

    Terry

    • Marked as answer by MadonFPGA Wednesday, September 6, 2017 8:07 AM
    Wednesday, September 6, 2017 6:12 AM

All replies

  • Hi MadonFPGA,

    I think you need use Application.Reminder event to capture reminder window pop up.

    Here is the example.

    Public Class ThisAddIn
    
        Private Sub ThisAddIn_Startup() Handles Me.Startup
    
        End Sub
    
        Private Sub ThisAddIn_Shutdown() Handles Me.Shutdown
    
        End Sub
    
        Private Sub Application_Reminder(Item As Object) Handles Application.Reminder
    
            MsgBox("Reminder Captured")
    
        End Sub
    
    End Class

    Best Regards,

    Terry

    • Marked as answer by MadonFPGA Wednesday, September 6, 2017 8:07 AM
    Wednesday, September 6, 2017 6:12 AM
  • Thank you very much, you solved my problem completly. But can you answer one more question, is it possible to make this window go on top of all other windows?

    Anyway, much obliged.

    Wednesday, September 6, 2017 8:12 AM