Deleting a command bar on shutdown

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all

In my Outlook 2000 COM Add-In that I developed in VB6, I would like to delete the CommandBar I added. I have specified the commandbar with Temporaty:=True at creation time, but it still seems to persist it between sessions.

If I try to delete it using oCmdBar.Delete in a shutdown routine I have that is called from the on_disconnect, i get an error sayong "object required".

How can I delete the commandbar at shutdown

Thanks

Selgin
 
Are you sure it gets persisted even if you specify Temporaty:=True? Did you
ever try to add the toolbar without Temporaty:=True? Try to delete
outcmd.dat and see if you still get the toolbar back.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool


Selgin said:
Hi all,

In my Outlook 2000 COM Add-In that I developed in VB6, I would like to
delete the CommandBar I added. I have specified the commandbar with
Temporaty:=True at creation time, but it still seems to persist it between
sessions.
If I try to delete it using oCmdBar.Delete in a shutdown routine I have
that is called from the on_disconnect, i get an error sayong "object
required".
 
Thanks Dmitry, deleting that file did the trick. Yes, I did add it before with temp=false.

----- Dmitry Streblechenko (MVP) wrote: -----

Are you sure it gets persisted even if you specify Temporaty:=True? Did you
ever try to add the toolbar without Temporaty:=True? Try to delete
outcmd.dat and see if you still get the toolbar back.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool


Selgin said:
delete the CommandBar I added. I have specified the commandbar with
Temporaty:=True at creation time, but it still seems to persist it between
sessions.that is called from the on_disconnect, i get an error sayong "object
required".
 
Back
Top