Simple Question - How do I attach code to the click event

Docking/MDI for Windows Forms Forum

Posted 18 years ago by Charles Trivisonno
Avatar
Visual Studio is new to me and so is your component set. I am very pleased with both, but sometimes I get stuck on things that I know are simple.

For example, I was using the Visual Studio toolbuttons and attached code to their click events using the VS Property Editor. Pretty simple.

How do I do this with your buttonbars? I know it may have something to do with the command / command link, but I can not figure it out. Could you please tell me how to do this or point me to the topic in your help file?

Thanks
Charles

Comments (2)

Posted 18 years ago by Charles Trivisonno
Avatar
Charles,

You need to use the CommandClick event of the BarManager.

Charles
Posted 18 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Charles,

You also can create command classes and abstract out your command processing to various classes. Check out the documentation topic "Bar Controls / Processing Command Clicks" to see how to do that. Or use the CommandClick event as you said.


Actipro Software Support

The latest build of this product (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.