Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Interop / January 2004

Tip: Looking for answers? Try searching our database.

outlook toolbar created everytime i open outlook

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Anushya - 02 Jan 2004 15:10 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.