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 / Programming Add-Ins / July 2005

Tip: Looking for answers? Try searching our database.

Persist commandbutton events

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Thaddaeus Parker - 28 Jul 2005 05:52 GMT
I am building an outlook addin with command bar that changes with each new
inspector that is spawned. The commandbar builds fine along with the main
events.  When I open a new mailitem, I build the same commandbar but with a
unique tag and different buttons save for a help button.  The events for the
new commandbar work fine, but when I close the inspector and try to fire the
help button on the main commandbar, nothing happens.  I have tried trapping
all the events before, during, and after an inspector created, but the main
commandbar events seem to disappear.
Does anyone have an idea what may be the problem?

Thanks,
Dmitry Streblechenko - 29 Jul 2005 21:05 GMT
How do you set up the buttons in your code?

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

>I am building an outlook addin with command bar that changes with each new
>inspector that is spawned. The commandbar builds fine along with the main
[quoted text clipped - 7 lines]
>
> Thanks,
Thaddaeus Parker - 31 Jul 2005 05:10 GMT
I think that I figured out my problem.  When I created my commandbar button
for the explorer and then for each inspector, I wasn't persisting the
commandbar seperately.  This means that I was deleting all the command bars
when anything was closed.  By separating my explorer functions and inspector
functions with seperate commandbars items, I was able to persist the button
clicks.  I had a lot of help from Helmut's code snippets on
www.outlookcode.com.
> How do you set up the buttons in your code?
>
[quoted text clipped - 14 lines]
>>
>> Thanks,
 
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



©2008 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.