Persist commandbutton events

T

Thaddaeus Parker

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,
 
T

Thaddaeus Parker

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top