> Startup event gets fired when when the first app launches Outlook. When user
> double clicks on the Outlook icon on the desktop, the already running
> instance of Outlook simply displays a new Explorer.
> I suspect the reason why your code does not work is because you always
> assume on startup that there is at least one explorer visible where you can
> add your buttons (which is not the case obviously)and you do not trap the
> Application.Explorers.NewExplorer event.
>
> Dmitry Streblechenko (MVP)
http://www.dimastr.com/> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
>
> "Sanjay" <spatel...[ at ]gmail.com> wrote in messagenews:1169829769.130548.104420[ at ]j27g2000cwj.googlegroups.com...
>
>
>
> > Hello guys..
> > I have an issue with one of the apps that connects to Outlook to
> > retrieve calendar information. It is a windows app that displays
> > calendar and recent mail items. Here is the sample code
>
> > using Microsoft.Office.Interop.Outlook;
> > public class OutlookSource
> > {
> > private Application outlookApp;
> > private NameSpace outlookNS;
> > public void OutlookSource
> > {
> > outlookApp = new Application();
> > outlookNS = outlookApp.GetNamespace("MAPI");
> > //do some work here
> > }
> > }
>
> > What above code does is that it launches outlook in the background.
> > When users actually launch outlook, the ThisApplication_Startup event
> > does not get fired. None of the plugins get activated.
>
> > Is there a workaround for this?
>
> > Sanjay- Hide quoted text -- Show quoted text -