• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Forms.ToolStripMenuItem类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.Windows.Forms.ToolStripMenuItem的典型用法代码示例。如果您正苦于以下问题:C# System.Windows.Forms.ToolStripMenuItem类的具体用法?C# System.Windows.Forms.ToolStripMenuItem怎么用?C# System.Windows.Forms.ToolStripMenuItem使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



System.Windows.Forms.ToolStripMenuItem类属于命名空间,在下文中一共展示了System.Windows.Forms.ToolStripMenuItem类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: InitializeComponent

 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(NotifyIconWrapper));
     this.NotifyIcon = new System.Windows.Forms.NotifyIcon(this.components);
     this.ContextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.VisibleMenu = new System.Windows.Forms.ToolStripMenuItem();
     this.CollapsedMenu = new System.Windows.Forms.ToolStripMenuItem();
     this.ExitMenu = new System.Windows.Forms.ToolStripMenuItem();
     this.Separator = new System.Windows.Forms.ToolStripSeparator();
     this.ContextMenuStrip.SuspendLayout();
     //
     // NotifyIcon
     //
     this.NotifyIcon.ContextMenuStrip = this.ContextMenuStrip;
     this.NotifyIcon.Icon = ((System.Drawing.Icon)(resources.GetObject("NotifyIcon.Icon")));
     this.NotifyIcon.Text = "FluidLauncher";
     this.NotifyIcon.Visible = true;
     //
     // ContextMenuStrip
     //
     this.ContextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.VisibleMenu,
     this.CollapsedMenu,
     this.Separator,
     this.ExitMenu});
     this.ContextMenuStrip.Name = "ContextMenuStrip";
     this.ContextMenuStrip.Size = new System.Drawing.Size(111, 70);
     //
     // VisibleMenu
     //
     this.VisibleMenu.Name = "VisibleMenu";
     this.VisibleMenu.Size = new System.Drawing.Size(110, 22);
     this.VisibleMenu.Text = "表示";
     //
     // CollapsedMenu
     //
     this.CollapsedMenu.Name = "CollapsedMenu";
     this.CollapsedMenu.Size = new System.Drawing.Size(110, 22);
     this.CollapsedMenu.Text = "非表示";
     //
     // ExitMenu
     //
     this.ExitMenu.Name = "ExitMenu";
     this.ExitMenu.Size = new System.Drawing.Size(110, 22);
     this.ExitMenu.Text = "終了";
     //
     // Separator
     //
     this.Separator.Name = "Separator";
     this.Separator.Size = new System.Drawing.Size(6, 6);
     this.ContextMenuStrip.ResumeLayout(false);
 }
开发者ID:t-kojima,项目名称:FluidLauncher,代码行数:53,代码来源:NotifyIconWrapper.cs


示例2: InitializeComponent

 /// <summary>
 /// Обязательный метод для поддержки конструктора - не изменяйте 
 /// содержимое данного метода при помощи редактора кода.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     this.contextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.настройкаЕлементовToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.contextMenuStrip.SuspendLayout();
     this.SuspendLayout();
     //
     // contextMenuStrip
     //
     this.contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.настройкаЕлементовToolStripMenuItem});
     this.contextMenuStrip.Name = "contextMenuStrip";
     this.contextMenuStrip.Size = new System.Drawing.Size(196, 48);
     //
     // настройкаЕлементовToolStripMenuItem
     //
     this.настройкаЕлементовToolStripMenuItem.Name = "настройкаЕлементовToolStripMenuItem";
     this.настройкаЕлементовToolStripMenuItem.Size = new System.Drawing.Size(195, 22);
     this.настройкаЕлементовToolStripMenuItem.Text = "Настройка элементов";
     this.настройкаЕлементовToolStripMenuItem.Click += new System.EventHandler(this.настройкаЕлементовToolStripMenuItem_Click);
     //
     // NumericTable
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ContextMenuStrip = this.contextMenuStrip;
     this.Name = "NumericTable";
     this.Size = new System.Drawing.Size(384, 355);
     this.contextMenuStrip.ResumeLayout(false);
     this.ResumeLayout(false);
 }
开发者ID:slawer,项目名称:sgt,代码行数:36,代码来源:NumericTable.designer.cs


示例3: InitializeComponent

 /// <summary>Form stuff...</summary>
 private void InitializeComponent( )
 {
     this.mnuDuplicateTab = new System.Windows.Forms.ToolStripMenuItem( );
     this.mnuCloseTab = new System.Windows.Forms.ToolStripMenuItem( );
     this.tabContextMenu = new System.Windows.Forms.ContextMenuStrip( );
     this.SuspendLayout( );
     // 
     // mnuDuplicateTab
     // 
     this.mnuDuplicateTab.Image = global::MongoConsole.Properties.Resources.document_copy;
     this.mnuDuplicateTab.Name = "mnuDuplicateTab";
     this.mnuDuplicateTab.Size = new System.Drawing.Size( 152, 22 );
     this.mnuDuplicateTab.Text = "Duplicate";
     // 
     // mnuCloseTab
     // 
     this.mnuCloseTab.Image = global::MongoConsole.Properties.Resources.cross_octagon;
     this.mnuCloseTab.Name = "mnuCloseTab";
     this.mnuCloseTab.Size = new System.Drawing.Size( 152, 22 );
     this.mnuCloseTab.Text = "Close";
     this.ResumeLayout( false );
     //
     // tabContextMenu
     // 
     this.tabContextMenu.Items.AddRange( new System.Windows.Forms.ToolStripItem[] {
     this.mnuDuplicateTab,
     this.mnuCloseTab} );
     this.tabContextMenu.Name = "tabContextMenu";
     this.tabContextMenu.Size = new System.Drawing.Size( 153, 70 );
 }
开发者ID:phillco,项目名称:MongoConsole,代码行数:31,代码来源:MongoTabControl.Designer.cs


示例4: PluginsController

 public PluginsController(IVisualEnvironmentCompiler VisualEnvironmentCompiler,System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem, System.Windows.Forms.ToolStrip ToolStrip, IWorkbench workbench)
 {
     this.ToolStripMenuItem = ToolStripMenuItem;
     this.ToolStrip = ToolStrip;
     this.VisualEnvironmentCompiler = VisualEnvironmentCompiler;
     this.workbench = workbench;
 }
开发者ID:lisiynos,项目名称:pascalabcnet,代码行数:7,代码来源:PluginsController.cs


示例5: InitializeComponent

 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MapViewer));
     this.menuStrip1 = new System.Windows.Forms.MenuStrip();
     this.renderMapAgainToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.mapImage = new System.Windows.Forms.PictureBox();
     this.menuStrip1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.mapImage)).BeginInit();
     this.SuspendLayout();
     //
     // menuStrip1
     //
     this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.renderMapAgainToolStripMenuItem});
     this.menuStrip1.Location = new System.Drawing.Point(0, 0);
     this.menuStrip1.Name = "menuStrip1";
     this.menuStrip1.Size = new System.Drawing.Size(284, 24);
     this.menuStrip1.TabIndex = 0;
     this.menuStrip1.Text = "menuStrip1";
     //
     // renderMapAgainToolStripMenuItem
     //
     this.renderMapAgainToolStripMenuItem.Name = "renderMapAgainToolStripMenuItem";
     this.renderMapAgainToolStripMenuItem.Size = new System.Drawing.Size(117, 20);
     this.renderMapAgainToolStripMenuItem.Text = "Render Map Again";
     this.renderMapAgainToolStripMenuItem.Click += new System.EventHandler(this.renderMapAgainToolStripMenuItem_Click);
     //
     // mapImage
     //
     this.mapImage.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                 | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.mapImage.Location = new System.Drawing.Point(0, 27);
     this.mapImage.Name = "mapImage";
     this.mapImage.Size = new System.Drawing.Size(284, 235);
     this.mapImage.TabIndex = 1;
     this.mapImage.TabStop = false;
     this.mapImage.DoubleClick += new System.EventHandler(this.mapImage_DoubleClick);
     this.mapImage.MouseDown += new System.Windows.Forms.MouseEventHandler(this.mapImage_MouseDown);
     //
     // MapViewer
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(284, 262);
     this.Controls.Add(this.mapImage);
     this.Controls.Add(this.menuStrip1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Location = new System.Drawing.Point(50, 50);
     this.MainMenuStrip = this.menuStrip1;
     this.Name = "MapViewer";
     this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
     this.Text = "Map Viewer";
     this.menuStrip1.ResumeLayout(false);
     this.menuStrip1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.mapImage)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
开发者ID:frkdom,项目名称:Region-Editor-2015,代码行数:64,代码来源:MapViewer.designer.cs


示例6: Init

        public override bool Init()
        {
            loopratehz = 1;

            if (File.Exists(statsfile))
            {
                try
                {
                    System.Xml.Serialization.XmlSerializer reader = new System.Xml.Serialization.XmlSerializer(statsoverall.GetType());

                    var file = new System.IO.StreamReader(statsfile);

                    statsoverall = (whattostat)reader.Deserialize(file);
                }
                catch { }
            }

            System.Windows.Forms.ToolStripMenuItem men = new System.Windows.Forms.ToolStripMenuItem() { Text = "Stats" };
            men.Click += men_Click;
            Host.FDMenuMap.Items.Add(men);

            statsoverall.appstarts++;

            return true;
        }
开发者ID:neolu,项目名称:MissionPlanner,代码行数:25,代码来源:Stats.cs


示例7: InitializeComponent

 /// <summary> 
 /// 设计器支持所需的方法 - 不要
 /// 使用代码编辑器修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.MenuItemStartRecord = new System.Windows.Forms.ToolStripMenuItem();
     this.MenuItemStopRecord = new System.Windows.Forms.ToolStripMenuItem();
     this.DVRCruise = new System.Windows.Forms.ToolStripMenuItem();
     this.PreSetCruise = new System.Windows.Forms.ToolStripMenuItem();
     this.Close = new System.Windows.Forms.ToolStripMenuItem();
     this.contextMenuStrip1.SuspendLayout();
     this.SuspendLayout();
     //
     // contextMenuStrip1
     //
     this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.MenuItemStartRecord,
     this.MenuItemStopRecord,
     this.DVRCruise,
     this.PreSetCruise,
     this.Close});
     this.contextMenuStrip1.Name = "contextMenuStrip1";
     this.contextMenuStrip1.Size = new System.Drawing.Size(131, 114);
     //
     // MenuItemStartRecord
     //
     this.MenuItemStartRecord.Name = "MenuItemStartRecord";
     this.MenuItemStartRecord.Size = new System.Drawing.Size(130, 22);
     this.MenuItemStartRecord.Text = "开始录像";
     //
     // MenuItemStopRecord
     //
     this.MenuItemStopRecord.Enabled = false;
     this.MenuItemStopRecord.Name = "MenuItemStopRecord";
     this.MenuItemStopRecord.Size = new System.Drawing.Size(130, 22);
     this.MenuItemStopRecord.Text = "停止录像";
     //
     // DVRCruise
     //
     this.DVRCruise.Name = "DVRCruise";
     this.DVRCruise.Size = new System.Drawing.Size(130, 22);
     this.DVRCruise.Text = "DVR轮询";
     //
     // PreSetCruise
     //
     this.PreSetCruise.Name = "PreSetCruise";
     this.PreSetCruise.Size = new System.Drawing.Size(130, 22);
     this.PreSetCruise.Text = "预置位轮询";
     //
     // Close
     //
     this.Close.Name = "Close";
     this.Close.Size = new System.Drawing.Size(130, 22);
     this.Close.Text = "关闭";
     //
     // ViedoPanel
     //
     this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.ViedoPanel_MouseMove);
     this.contextMenuStrip1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
开发者ID:dalinhuang,项目名称:videospstandalonenew,代码行数:64,代码来源:ViedoPanel.designer.cs


示例8: InitializeComponent

 /// <summary> 
 /// Required method for Designer support - do not modify 
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ControlPartList));
     this.contextMenuPart = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.renameToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.deleteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.toolTipNamespace = new System.Windows.Forms.ToolTip(this.components);
     this.labelDataSource = new System.Windows.Forms.Label();
     this.comboBoxPartList = new System.Windows.Forms.ComboBox();
     this.contextMenuPart.SuspendLayout();
     this.SuspendLayout();
     //
     // contextMenuPart
     //
     resources.ApplyResources(this.contextMenuPart, "contextMenuPart");
     this.contextMenuPart.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.renameToolStripMenuItem,
     this.deleteToolStripMenuItem});
     this.contextMenuPart.Name = "contextMenuPart";
     this.contextMenuPart.Opening += new System.ComponentModel.CancelEventHandler(this.contextMenuPart_Opening);
     //
     // renameToolStripMenuItem
     //
     this.renameToolStripMenuItem.Name = "renameToolStripMenuItem";
     resources.ApplyResources(this.renameToolStripMenuItem, "renameToolStripMenuItem");
     this.renameToolStripMenuItem.Click += new System.EventHandler(this.renameToolStripMenuItem_Click);
     //
     // deleteToolStripMenuItem
     //
     this.deleteToolStripMenuItem.Name = "deleteToolStripMenuItem";
     resources.ApplyResources(this.deleteToolStripMenuItem, "deleteToolStripMenuItem");
     this.deleteToolStripMenuItem.Click += new System.EventHandler(this.deleteToolStripMenuItem_Click);
     //
     // labelDataSource
     //
     resources.ApplyResources(this.labelDataSource, "labelDataSource");
     this.labelDataSource.Name = "labelDataSource";
     //
     // comboBoxPartList
     //
     resources.ApplyResources(this.comboBoxPartList, "comboBoxPartList");
     this.comboBoxPartList.ContextMenuStrip = this.contextMenuPart;
     this.comboBoxPartList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBoxPartList.FormattingEnabled = true;
     this.comboBoxPartList.Name = "comboBoxPartList";
     this.comboBoxPartList.SelectedIndexChanged += new System.EventHandler(this.comboBoxPartList_SelectedIndexChanged);
     this.comboBoxPartList.MouseHover += new System.EventHandler(this.comboBoxPartList_MouseHover);
     //
     // ControlPartList
     //
     resources.ApplyResources(this, "$this");
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.comboBoxPartList);
     this.Controls.Add(this.labelDataSource);
     this.Name = "ControlPartList";
     this.contextMenuPart.ResumeLayout(false);
     this.ResumeLayout(false);
 }
开发者ID:plutext,项目名称:OpenDoPE-Mapping-WordAddIn,代码行数:63,代码来源:ControlPartList.designer.cs


示例9: InitializeComponent

 /// <summary> 
 /// Required method for Designer support - do not modify 
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ControlProperties));
     this.contextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.copyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.listViewProperties = new System.Windows.Forms.ListView();
     this.columnHeaderProperty = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeaderValue = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.contextMenuStrip.SuspendLayout();
     this.SuspendLayout();
     //
     // contextMenuStrip
     //
     this.contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.copyToolStripMenuItem});
     this.contextMenuStrip.Name = "contextMenuStrip";
     resources.ApplyResources(this.contextMenuStrip, "contextMenuStrip");
     this.contextMenuStrip.Opening += new System.ComponentModel.CancelEventHandler(this.contextMenuStrip_Opening);
     //
     // copyToolStripMenuItem
     //
     this.copyToolStripMenuItem.Name = "copyToolStripMenuItem";
     resources.ApplyResources(this.copyToolStripMenuItem, "copyToolStripMenuItem");
     this.copyToolStripMenuItem.Click += new System.EventHandler(this.copyToolStripMenuItem_Click);
     //
     // listViewProperties
     //
     this.listViewProperties.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
     this.columnHeaderProperty,
     this.columnHeaderValue});
     this.listViewProperties.ContextMenuStrip = this.contextMenuStrip;
     resources.ApplyResources(this.listViewProperties, "listViewProperties");
     this.listViewProperties.FullRowSelect = true;
     this.listViewProperties.GridLines = true;
     this.listViewProperties.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
     this.listViewProperties.MultiSelect = false;
     this.listViewProperties.Name = "listViewProperties";
     this.listViewProperties.ShowItemToolTips = true;
     this.listViewProperties.UseCompatibleStateImageBehavior = false;
     this.listViewProperties.View = System.Windows.Forms.View.Details;
     //
     // columnHeaderProperty
     //
     resources.ApplyResources(this.columnHeaderProperty, "columnHeaderProperty");
     //
     // columnHeaderValue
     //
     resources.ApplyResources(this.columnHeaderValue, "columnHeaderValue");
     //
     // ControlProperties
     //
     resources.ApplyResources(this, "$this");
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.listViewProperties);
     this.Name = "ControlProperties";
     this.contextMenuStrip.ResumeLayout(false);
     this.ResumeLayout(false);
 }
开发者ID:plutext,项目名称:OpenDoPE-Mapping-WordAddIn,代码行数:63,代码来源:ControlProperties.designer.cs


示例10: Initialize

		public void Initialize(Hal.NCSPlugin.IPluginHost host)
		{
			_host = host;

			_menuItem = new System.Windows.Forms.ToolStripMenuItem("インポート(&I)");
			_menuItem.Click += new EventHandler(menuitem_Click);
			_host.AddMenuStripItem("ファイル(&F)", _menuItem);

		}
开发者ID:nico-lab,项目名称:niconama-ocv,代码行数:9,代码来源:Importer.cs


示例11: InitializeComponent

 /// <summary>
 /// 设计器支持所需的方法 - 不要
 /// 使用代码编辑器修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     this.panel_face = new System.Windows.Forms.Panel();
     this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.Tool_Ima = new System.Windows.Forms.ToolStripMenuItem();
     this.Tool_File = new System.Windows.Forms.ToolStripMenuItem();
     this.contextMenuStrip1.SuspendLayout();
     this.SuspendLayout();
     //
     // panel_face
     //
     this.panel_face.ContextMenuStrip = this.contextMenuStrip1;
     this.panel_face.Dock = System.Windows.Forms.DockStyle.Fill;
     this.panel_face.Location = new System.Drawing.Point(0, 0);
     this.panel_face.Name = "panel_face";
     this.panel_face.Size = new System.Drawing.Size(391, 238);
     this.panel_face.TabIndex = 0;
     this.panel_face.Visible = false;
     //
     // contextMenuStrip1
     //
     this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.Tool_Ima,
     this.Tool_File});
     this.contextMenuStrip1.Name = "contextMenuStrip2";
     this.contextMenuStrip1.Size = new System.Drawing.Size(137, 48);
     //
     // Tool_Ima
     //
     this.Tool_Ima.Name = "Tool_Ima";
     this.Tool_Ima.Size = new System.Drawing.Size(136, 22);
     this.Tool_Ima.Tag = "1";
     this.Tool_Ima.Text = "拖放图片";
     //
     // Tool_File
     //
     this.Tool_File.Name = "Tool_File";
     this.Tool_File.Size = new System.Drawing.Size(136, 22);
     this.Tool_File.Tag = "2";
     this.Tool_File.Text = "拖放文件夹";
     //
     // Frm_Main
     //
     this.AccessibleRole = System.Windows.Forms.AccessibleRole.None;
     this.AllowDrop = true;
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(391, 238);
     this.ContextMenuStrip = this.contextMenuStrip1;
     this.Controls.Add(this.panel_face);
     this.Name = "Frm_Main";
     this.Text = "向窗体中拖放图片并显示";
     this.DragEnter += new System.Windows.Forms.DragEventHandler(this.Frm_Main_DragEnter);
     this.contextMenuStrip1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
开发者ID:TGHGH,项目名称:C-1200,代码行数:61,代码来源:Frm_Main.designer.cs


示例12: InitializeComponent

 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LLFormDoc));
     this.toolTip = new System.Windows.Forms.ToolTip(this.components);
     this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.miCLose = new System.Windows.Forms.ToolStripMenuItem();
     this.miCloseAll = new System.Windows.Forms.ToolStripMenuItem();
     this.miCloseAllButThis = new System.Windows.Forms.ToolStripMenuItem();
     this.contextMenuStrip1.SuspendLayout();
     this.SuspendLayout();
     //
     // contextMenuStrip1
     //
     this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.miCLose,
     this.miCloseAll,
     this.miCloseAllButThis});
     this.contextMenuStrip1.Name = "contextMenuStrip1";
     this.contextMenuStrip1.Size = new System.Drawing.Size(143, 70);
     //
     // miCLose
     //
     this.miCLose.Name = "miCLose";
     this.miCLose.Size = new System.Drawing.Size(142, 22);
     this.miCLose.Text = "�ر�";
     this.miCLose.ToolTipText = "�رյ�ǰ����";
     this.miCLose.Click += new System.EventHandler(this.miCLose_Click);
     //
     // miCloseAll
     //
     this.miCloseAll.Name = "miCloseAll";
     this.miCloseAll.Size = new System.Drawing.Size(142, 22);
     this.miCloseAll.Text = "�ر�����";
     this.miCloseAll.ToolTipText = "�ر����д���";
     this.miCloseAll.Click += new System.EventHandler(this.miCloseAll_Click);
     //
     // miCloseAllButThis
     //
     this.miCloseAllButThis.Name = "miCloseAllButThis";
     this.miCloseAllButThis.Size = new System.Drawing.Size(142, 22);
     this.miCloseAllButThis.Text = "�رմ�������";
     this.miCloseAllButThis.ToolTipText = "�رճ��˴���������д���";
     this.miCloseAllButThis.Click += new System.EventHandler(this.miCloseAllButThis_Click);
     //
     // FormAJDoc
     //
     this.ClientSize = new System.Drawing.Size(448, 393);
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name = "FormAJDoc";
     this.Padding = new System.Windows.Forms.Padding(0, 4, 0, 0);
     this.TabPageContextMenuStrip = this.contextMenuStrip1;
     this.Load += new System.EventHandler(this.LLFormDoc_Load);
     this.contextMenuStrip1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
开发者ID:elanyang,项目名称:ll-furniture,代码行数:60,代码来源:LLFormDoc.designer.cs


示例13: SubbasinMap

        public SubbasinMap()
        {
            //context menu
            System.Windows.Forms.ToolStripMenuItem exportMenu =
                new System.Windows.Forms.ToolStripMenuItem("Export current results to CSV");
            exportMenu.Click += (ss, _e) => { export(); };

            this.ContextMenuStrip = new System.Windows.Forms.ContextMenuStrip();
            this.ContextMenuStrip.Items.Add(exportMenu);
        }
开发者ID:ajarbancina,项目名称:swat-eclipse,代码行数:10,代码来源:SubbasinMap.cs


示例14: InitializeComponent

 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
       System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ShareWatcher));
       this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
       this.contextMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
       this.monitoringEnabledMenuItem = new System.Windows.Forms.ToolStripMenuItem();
       this.closeMenuItem = new System.Windows.Forms.ToolStripMenuItem();
       this.contextMenu.SuspendLayout();
       this.SuspendLayout();
       //
       // notifyIcon1
       //
       this.notifyIcon1.ContextMenuStrip = this.contextMenu;
       this.notifyIcon1.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon")));
       this.notifyIcon1.Text = "MyFilms Share Watcher";
       this.notifyIcon1.Visible = true;
       //
       // contextMenu
       //
       this.contextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.monitoringEnabledMenuItem,
     this.closeMenuItem});
       this.contextMenu.Name = "contextMenuStrip1";
       this.contextMenu.Size = new System.Drawing.Size(216, 70);
       //
       // monitoringEnabledMenuItem
       //
       this.monitoringEnabledMenuItem.Checked = true;
       this.monitoringEnabledMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
       this.monitoringEnabledMenuItem.Name = "monitoringEnabledMenuItem";
       this.monitoringEnabledMenuItem.Size = new System.Drawing.Size(215, 22);
       this.monitoringEnabledMenuItem.Text = "Monitoring Enabled";
       this.monitoringEnabledMenuItem.Click += new System.EventHandler(this.monitoringEnabledMenuItem_Click);
       //
       // closeMenuItem
       //
       this.closeMenuItem.Name = "closeMenuItem";
       this.closeMenuItem.Size = new System.Drawing.Size(215, 22);
       this.closeMenuItem.Text = "Close Music Share Watcher";
       //
       // ShareWatcher
       //
       this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
       this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
       this.ClientSize = new System.Drawing.Size(412, 178);
       this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
       this.Name = "ShareWatcher";
       this.ShowInTaskbar = false;
       this.Text = "MyFilms Share Watcher";
       this.WindowState = System.Windows.Forms.FormWindowState.Minimized;
       this.Resize += new System.EventHandler(this.OnResize);
       this.contextMenu.ResumeLayout(false);
       this.ResumeLayout(false);
 }
开发者ID:GuzziMP,项目名称:my-films,代码行数:59,代码来源:ShareWatcher.designer.cs


示例15: InitializeComponent

 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.option1ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.option2ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.option3ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.contextMenuStrip1.SuspendLayout();
     this.SuspendLayout();
     //
     // contextMenuStrip1
     //
     this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.option1ToolStripMenuItem,
     this.option2ToolStripMenuItem,
     this.option3ToolStripMenuItem});
     this.contextMenuStrip1.Name = "contextMenuStrip1";
     this.contextMenuStrip1.Size = new System.Drawing.Size(113, 70);
     //
     // option1ToolStripMenuItem
     //
     this.option1ToolStripMenuItem.Name = "option1ToolStripMenuItem";
     this.option1ToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
     this.option1ToolStripMenuItem.Text = "Option&1";
     //
     // option2ToolStripMenuItem
     //
     this.option2ToolStripMenuItem.Name = "option2ToolStripMenuItem";
     this.option2ToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
     this.option2ToolStripMenuItem.Text = "Option&2";
     //
     // option3ToolStripMenuItem
     //
     this.option3ToolStripMenuItem.Name = "option3ToolStripMenuItem";
     this.option3ToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
     this.option3ToolStripMenuItem.Text = "Option&3";
     //
     // ToolboxWindow
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(292, 266);
     this.DockAreas = ((FSoft.EVincaMapper.Common.DockingPanel.DockAreas)(((((FSoft.EVincaMapper.Common.DockingPanel.DockAreas.Float | FSoft.EVincaMapper.Common.DockingPanel.DockAreas.DockLeft)
     | FSoft.EVincaMapper.Common.DockingPanel.DockAreas.DockRight)
     | FSoft.EVincaMapper.Common.DockingPanel.DockAreas.DockTop)
     | FSoft.EVincaMapper.Common.DockingPanel.DockAreas.DockBottom)));
     this.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Name = "ToolboxWindow";
     this.TabPageContextMenuStrip = this.contextMenuStrip1;
     this.TabText = "ToolWindow";
     this.Text = "Toolbox Window";
     this.contextMenuStrip1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
开发者ID:huutruongqnvn,项目名称:vnecoo01,代码行数:58,代码来源:CommonToolBox.designer.cs


示例16: InitializeComponent

 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     this.DocumentContextMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
     this.ToolWindowContextMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.hideToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.DocumentContextMenu.SuspendLayout();
     this.ToolWindowContextMenu.SuspendLayout();
     this.SuspendLayout();
     //
     // DocumentContextMenu
     //
     this.DocumentContextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.toolStripMenuItem1});
     this.DocumentContextMenu.Name = "contextMenuStrip1";
     this.DocumentContextMenu.Size = new System.Drawing.Size(112, 26);
     //
     // toolStripMenuItem1
     //
     this.toolStripMenuItem1.Name = "toolStripMenuItem1";
     this.toolStripMenuItem1.Size = new System.Drawing.Size(111, 22);
     this.toolStripMenuItem1.Text = "Close";
     this.toolStripMenuItem1.Click += new System.EventHandler(this.toolStripMenuItem1_Click);
     //
     // ToolWindowContextMenu
     //
     this.ToolWindowContextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.hideToolStripMenuItem});
     this.ToolWindowContextMenu.Name = "ToolWindowContextMenu";
     this.ToolWindowContextMenu.Size = new System.Drawing.Size(107, 26);
     //
     // hideToolStripMenuItem
     //
     this.hideToolStripMenuItem.Name = "hideToolStripMenuItem";
     this.hideToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
     this.hideToolStripMenuItem.Text = "Hide";
     this.hideToolStripMenuItem.Click += new System.EventHandler(this.hideToolStripMenuItem_Click);
     //
     // ToolWindow
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(292, 266);
     this.Name = "ToolWindow";
     this.TabPageContextMenuStrip = this.DocumentContextMenu;
     this.TabText = "ToolWindow";
     this.Text = "ToolWindow";
     this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.ToolWindow_FormClosing);
     this.DockStateChanged += new System.EventHandler(this.ToolWindow_DockStateChanged);
     this.DocumentContextMenu.ResumeLayout(false);
     this.ToolWindowContextMenu.ResumeLayout(false);
     this.ResumeLayout(false);
 }
开发者ID:rlmarsh85,项目名称:bloodlines-resurgence,代码行数:58,代码来源:ToolWindow.designer.cs


示例17: MainWindow

        public MainWindow()
        {
            InitializeComponent();

            //System.Windows.Point point = new Point(100, 100);
            //System.Windows.Automation.AutomationElement el = null;
            //el = System.Windows.Automation.AutomationElement.FromPoint(point);
            //System.Windows.Automation.AutomationElement el_top = TopElement(el);

            //Cpt(new Point(200, 300));

            try
            {
                this.ShowInTaskbar = false;
                _notifyIcon = new System.Windows.Forms.NotifyIcon();
                _notifyIcon.Text = "Capture";
                _notifyIcon.Icon = new System.Drawing.Icon("icon.ico");
                _notifyIcon.Visible = true;

                System.Windows.Forms.ContextMenuStrip menuStrip = new System.Windows.Forms.ContextMenuStrip();
                System.Windows.Forms.ToolStripMenuItem openItem = new System.Windows.Forms.ToolStripMenuItem();
                openItem.Text = "Capture を開く";
                openItem.Click += new EventHandler(openItem_Click);
                menuStrip.Items.Add(openItem);

                System.Windows.Forms.ToolStripMenuItem exitItem = new System.Windows.Forms.ToolStripMenuItem();
                exitItem.Text = "終了";
                exitItem.Click += new EventHandler(exitItem_Click);
                menuStrip.Items.Add(exitItem);

                _notifyIcon.ContextMenuStrip = menuStrip;
                _notifyIcon.DoubleClick += new EventHandler(_notifyIcon_DoubleClick);

                this.Closing += new System.ComponentModel.CancelEventHandler(MainWindow_Closing);
                this.Closed += new EventHandler(MainWindow_Closed);

                this.btnStop.IsEnabled = false;

                // WindowのHandleを取得
                WindowInteropHelper _host = new WindowInteropHelper(this);
                this._windowHandle = _host.Handle;

                // HotKeyを設定
                //SetupHotKey();
                ComponentDispatcher.ThreadPreprocessMessage += ComponentDispatcher_ThreadPreprocessMessage;

                //前面表示
                this.Topmost = setting.Topmost;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message + "\n" + ex.StackTrace);
            }
        }
开发者ID:ouipanda,项目名称:Capture,代码行数:54,代码来源:MainWindow.xaml.cs


示例18: Initialize

		public void Initialize()
		{
			_menu = new System.Windows.Forms.ToolStripMenuItem("Initialize Debugger", null, delegate { 
			                                                   	DebugManagerForm frm = new DebugManagerForm();
			                                                   	frm.Controls.Add(debugMenu);
			                                                   	debugMenu.Parent = frm;
			                                                   	debugMenu.Dock = System.Windows.Forms.DockStyle.Fill;
			                                                   	_menu.Visible = false;
			                                                   	frm.Show();
			                                                   });
			debugMenu = new DebugMenu();
		}
开发者ID:westybsa,项目名称:MP.LSharp,代码行数:12,代码来源:Plugin.cs


示例19: InitializeComponent

 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.option1ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.option2ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.option3ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.contextMenuStrip1.SuspendLayout();
     this.SuspendLayout();
     //
     // contextMenuStrip1
     //
     this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
     this.option1ToolStripMenuItem,
     this.option2ToolStripMenuItem,
     this.option3ToolStripMenuItem});
     this.contextMenuStrip1.Name = "contextMenuStrip1";
     this.contextMenuStrip1.Size = new System.Drawing.Size(113, 70);
     //
     // option1ToolStripMenuItem
     //
     this.option1ToolStripMenuItem.Name = "option1ToolStripMenuItem";
     this.option1ToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
     this.option1ToolStripMenuItem.Text = "Option&1";
     //
     // option2Too 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Forms.ToolStripSeparator类代码示例发布时间:2022-05-24
下一篇:
C# Forms.ToolStripLabel类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap