Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - How to add execute event to CommandBarControl?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to add execute event to CommandBarControl?

 Post Reply Post Reply
Author
Message
likigoldenstar View Drop Down
Newbie
Newbie
Avatar

Joined: 03 April 2008
Location: Malaysia
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote likigoldenstar Quote  Post ReplyReply Direct Link To This Post Topic: How to add execute event to CommandBarControl?
    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
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 03 April 2008 at 9:37am
Hi,
 
You can use the CommandBars_Execute event for this. This event fires with each click or whatever happens with commandbars.
 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.