Results 1 to 8 of 8

Thread: VB6 - Auto accept Outlook Security Message

Threaded View

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,803

    VB6 - Auto accept Outlook Security Message

    Did you ever get this anoying message when accessing Outlook from your program ?


    Recently I had this problem, I asked for help, and got the anser myself here:
    [RESOLVED] How can i get rid of this anoying message ?

    Well the solution is simple, there are only a 2 main steps:
    Find the Outlook window
    When found, SendKeys to select the options, and click the "Yes" button.

    The problem is that Outlook freezes your program while the window is showing, so the anser is to put all the code that closes the window, either in another application, or an ActiveX EXE (since it is in another thread).

    You will find attached 2 projects, one is the ActiveX EXE, and the other is a regular application that is using Outlook.

    First start the ActiveX EXE (KillOutlookMSG.vbp), and then start the UseOutlook.vbp.
    Make sure the references are still there !
    UseOutlook.vbp has a reference to Outlook, and another to the ActiveX EXE KillOutlookMSG.vbp
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width