G
Guest
Hi.
I'm using VB.NET to read emails in Outlook 2003.
Here are my 2 puzzling situations:
1) I "Dim oApp As New Outlook.Application" and Dim whatever else I need in
a Sub.
Before exiting the Sub I "oApp.Quit" and "oApp = Nothing".
However, in Task Manager I can still see Outlook running.
How to I get Outlook to close down completely?
2) The Inbox that I check has emails coming in and out. However, when I
call the
Sub that reads the emails it only finds the ones at a certain time and
will not
refresh until I restart the program. Even though the Sub Dims the
Outlook
application and sets it to Nothing before exiting, when I call that Sub
again it will
only return the same emails as the previous loop, even though there may
actually
be more emails. Only on restarting the program will I then get the new
emails.
I looked for a Refresh method for the Outlook application (also on
Outlook
Folders) but could not find anything.
Any suggestions will be greatly appreciated!
Rita
I'm using VB.NET to read emails in Outlook 2003.
Here are my 2 puzzling situations:
1) I "Dim oApp As New Outlook.Application" and Dim whatever else I need in
a Sub.
Before exiting the Sub I "oApp.Quit" and "oApp = Nothing".
However, in Task Manager I can still see Outlook running.
How to I get Outlook to close down completely?
2) The Inbox that I check has emails coming in and out. However, when I
call the
Sub that reads the emails it only finds the ones at a certain time and
will not
refresh until I restart the program. Even though the Sub Dims the
Outlook
application and sets it to Nothing before exiting, when I call that Sub
again it will
only return the same emails as the previous loop, even though there may
actually
be more emails. Only on restarting the program will I then get the new
emails.
I looked for a Refresh method for the Outlook application (also on
Outlook
Folders) but could not find anything.
Any suggestions will be greatly appreciated!
Rita