How to add execute event to CommandBarControl? |
Post Reply |
Author | |
likigoldenstar
Newbie Joined: 03 April 2008 Location: Malaysia Status: Offline Points: 9 |
Post Options
Thanks(0)
Posted: 03 April 2008 at 6:42am |
Hi, I want to add an event to a CommandBarControl inC#. I tried like this. CommandBarControl cbc = ..... cbc.Execute += this.MenuClick; but error is occured: "Can't assign to Execute because it is a 'method group'. " How shall i do to add an event when user clicks that control(Menu item)? I wish I will control an event by each item , separately. Thanks. |
|
Liki goldenstar
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi,
You can use the CommandBars_Execute event for this. This event fires with each click or whatever happens with commandbars.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |