Click here to Skip to main content
15,893,594 members
Articles / Programming Languages / C#

Command Switchboard for Windows Forms

Rate me:
Please Sign up or sign in to vote.
4.83/5 (16 votes)
12 Jul 2007CPOL8 min read 73.3K   1.4K   93  
Switchboard component for user interface commands with design time support
using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;

namespace SundbySoft.Controls
{
    /// <summary>
    /// Handles commands associated with menus, toolbars, status bars and context menus.
    /// Supports .NET 2.0 Toolstrip based menus, toolbars etc and our own toolstrip extended controls.
    /// </summary>
    [ToolboxItemFilter("SundbySoft.Controls")]
    [ToolboxItem(true)]
    public partial class ToolStripExtensionUISwitchboard : ToolStripUISwitchboard
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ToolStripExtensionUISwitchboard"/> class. 
        /// </summary>
        public ToolStripExtensionUISwitchboard()
            : this(null)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="ToolStripExtensionUISwitchboard"/> class. 
        /// </summary>
        /// <param name="container"></param>
        public ToolStripExtensionUISwitchboard(IContainer container)
            : base(container)
        {
            UIItemAdapter = new ToolStripExtensionUIItemAdapter(this);
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

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


Written By
Founder Sundby Software
Norway Norway
Bjørn has developed software since 1984 mainly in C, C++ and C#.

Bjørn lives in Ormåsen, Buskerud in Norway. To contact Bjørn, email him at bjsundby@online.no. He also has a web site at http://www.sundbysoft.com.

Comments and Discussions