Click here to Skip to main content
15,896,154 members
Articles / Desktop Programming / Windows Forms

Connect Multiple UI Elements to a Single Command Object

Rate me:
Please Sign up or sign in to vote.
4.44/5 (14 votes)
18 Apr 2008CPOL2 min read 28.8K   212   27  
An easy way to group several UI elements (menu items, toolbar buttons, etc.) so they all execute the same command and are enabled/disabled together (with Visual Studio designer support).

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
Mark Lauritsen has been a software developer since 1983, starting at IBM and using a variety of languages including PL/1, Pascal, REXX, Ada, C/C++ and C#. Mark currently works at a midstream energy company developing Windows services and desktop applications in C#.

Comments and Discussions