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.
 
Top