Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
CommandBarMenu.cs
Package: ProgressBar_src.rar [view]
Upload User: nnpulika
Upload Date: 2013-02-15
Package Size: 597k
Code Size: 1k
Category:
StatusBar
Development Platform:
C#
- using System;
- using System.Windows.Forms;
- using System.Drawing;
- using System.ComponentModel;
- using UtilityLibrary.Menus;
- using UtilityLibrary.Collections;
- namespace UtilityLibrary.CommandBars
- {
- /// <summary>
- /// Summary description for CommandBaMenu
- /// </summary>
- [ToolboxItem(false)]
- public class CommandBarMenu : ContextMenu
- {
- #region Class Variables
- // This is just to keep track of the selected
- // menu as well as hold the menuitems in the menubar
- Menu selectedMenuItem = null;
- #endregion
- #region Constructors
- public CommandBarMenu(MenuItemExCollection items)
- {
- for(int i = 0; i < items.Count; i++)
- {
- MenuItems.Add((MenuItemEx)items[i]);
- }
- }
- #endregion
- #region Overrides
- protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
- {
- return base.ProcessCmdKey(ref msg, keyData);
- }
- #endregion
- #region Properties
- internal Menu SelectedMenuItem
- {
- set { selectedMenuItem = value; }
- get { return selectedMenuItem; }
- }
- #endregion
- }
- }