Disabling "send immediately when connected" programmatically

K

kris b.

Not positive if this will work, but it's a different
direction to the one your trying, maybe a modified version
would help, but here's my idea:

If I'm not mistaken the inspector will remain open while
sending, then dies once the message is sent, no matter
what the size of message or its attachments.

So implement either a "WithEvents" or "AddHandler" for the
inspector's _Close event then test to make sure it's the
last man off the boat:
('golapp' being the global outlook variable)

If golApp.ActiveExplorer Is Nothing And
golApp.Inspectors.Count <= 0 Then
GoTo ExitAddin ' Do the close here
End If

If an explorer is also spawning you'll need to capture its
_Close event, too.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top