PowerPoint Addin command bar button events

N

Nick

Hi there,

I'm a tad confused with this issue, I can create a button bar with a
button and use the AddHandler event to respond to the click event. But this
only works upon creation, lets say I restart PowerPoint and reuse the
button, AddHandler ceases to work. Even referencing the object WithEvents
doesn't work.

I'm also a little confused as to how I am supposed to remove the bar
once the addin is uninstalled too, or do I have to delete it when the plugin
disconnects and save it's position? Thanks loads in advance!!

Also does anyone know how to get a reference to the powerpoint filename
currently opened? Thanks again!!
 
N

Nick

Right I've actually managed to obtain the correct handle for the button when
it already exists now so I suppose my only 2 questions that remain are,

1) How do I remove the button on uninstallation?
2) How do I get a reference to the documents filename currently loaded
in PowerPoint?

Thanks loads in advance!

Nick.

Nick said:
I should also mention im doing it in .NET and VS.NET 2003.
 
N

Nick

Ive got the filename just the uninstallation bit now. :)

Nick said:
Right I've actually managed to obtain the correct handle for the button
when it already exists now so I suppose my only 2 questions that remain
are,

1) How do I remove the button on uninstallation?
2) How do I get a reference to the documents filename currently loaded
in PowerPoint?

Thanks loads in advance!

Nick.

Nick said:
I should also mention im doing it in .NET and VS.NET 2003.
 

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