Button click events (C#)

A

Alex

Hello again,

I'm a bit confused.

Can anyone tell me when should I use something like
button.Click += new Microsoft.Office.Core._CommandBarButtonEvents_ClickEventHandler(...);
and when
button.OnAction("...");

The documentation is skimpy.

Thanks,
Alex.
 
H

Helmut Obertanner

Hell Alex,

from my knowledge with the OnAction event you can call a sub / macro or load
an addin.

Within an AddIn i would use the Click event.

Greets, Helmut Obertanner

Hello again,

I'm a bit confused.

Can anyone tell me when should I use something like
button.Click += new
Microsoft.Office.Core._CommandBarButtonEvents_ClickEventHandler(...);
and when
button.OnAction("...");

The documentation is skimpy.

Thanks,
Alex.
 

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