Print Page | Close Window

How to add execute event to CommandBarControl?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=10058
Printed Date: 16 September 2024 at 4:16pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to add execute event to CommandBarControl?
Posted By: likigoldenstar
Subject: How to add execute event to CommandBarControl?
Date 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



Replies:
Posted By: Aaron
Date 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.
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net