Hi
I am creating a outlook addins and in that OnConnection i am creating
a toolbar(Commandbars). the code is working fine..
But the problem is whenever i restart outlook, it is creating a new
toolbar..
Wot is the change i need to do??
Pls let me know immediately
Anushya
Falconetti Daniel - 02 Jan 2004 16:33 GMT
Hi,
you should parse the toolbar collection to see if your toolbar is allready
there. If so don't create it again.
ActiveExplorer.CommandBars.Item("MyCmdBar")

Signature
Daniel Falconetti
MCSE/MCT
www.falconetti.net
> Hi
> I am creating a outlook addins and in that OnConnection i am creating
[quoted text clipped - 7 lines]
> Pls let me know immediately
> Anushya
Dmitry Streblechenko - 02 Jan 2004 17:12 GMT
Either check if your toolbar is already there and delete it or (even better)
create your toolbar as temporary (CommandBars.Add(...Temporary:=true, ...)),
this way Outlook will not persist it between the sessions.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
> Hi
> I am creating a outlook addins and in that OnConnection i am creating
[quoted text clipped - 7 lines]
> Pls let me know immediately
> Anushya
Anushya - 03 Jan 2004 08:10 GMT
Thanks Dmitry
It works fine.
Anushya
> Either check if your toolbar is already there and delete it or (even better)
> create your toolbar as temporary (CommandBars.Add(...Temporary:=true, ...)),
[quoted text clipped - 16 lines]
> > Pls let me know immediately
> > Anushya
Tom Carter - 02 Jan 2004 19:52 GMT
Hi v_anushya,
Try modifying your code to get the existing Outlook object to check
for the Commandbar that you have already created. Bypass the creation
process if the Commandbar already exists .
~~~~~~~~~~~~~
Tommie Carter
--
> Hi
> I am creating a outlook addins and in that OnConnection i am creating
[quoted text clipped - 7 lines]
> Pls let me know immediately
> Anushya