当前位置: 首页>>代码示例>>C#>>正文


C# MainMenu.setHelpMenu方法代码示例

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


在下文中一共展示了MainMenu.setHelpMenu方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Frame1


//.........这里部分代码省略.........
        temp_Label3 = new System.Windows.Forms.Label();
        temp_Label3.Text = "High X";
        label3 = temp_Label3;
        label3.SetBounds(SupportClass.GetInsets(this)[1] + 564, SupportClass.GetInsets(this)[0] + 480, 39, 25);
        //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
        Controls.Add(label3);
        System.Windows.Forms.Label temp_Label4;
        temp_Label4 = new System.Windows.Forms.Label();
        temp_Label4.Text = "High Y";
        label4 = temp_Label4;
        label4.SetBounds(SupportClass.GetInsets(this)[1] + 564, SupportClass.GetInsets(this)[0] + 516, 37, 27);
        //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
        Controls.Add(label4);
        System.Windows.Forms.Label temp_Label5;
        temp_Label5 = new System.Windows.Forms.Label();
        temp_Label5.Text = "OID";
        label5 = temp_Label5;
        label5.SetBounds(SupportClass.GetInsets(this)[1] + 564, SupportClass.GetInsets(this)[0] + 552, 38, 25);
        //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
        Controls.Add(label5);
        System.Windows.Forms.TextBox temp_TextBox;
        //UPGRADE_TODO: The equivalent in .NET for field 'java.awt.TextArea.SCROLLBARS_VERTICAL_ONLY' may return a different value. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1043'";;
        temp_TextBox = new System.Windows.Forms.TextBox();
        temp_TextBox.Text = "";
        temp_TextBox.WordWrap = false;
        temp_TextBox.ScrollBars = (System.Windows.Forms.ScrollBars) System.Windows.Forms.ScrollBars.Vertical;
        temp_TextBox.Multiline = true;
        textArea1 = temp_TextBox;
        textArea1.ReadOnly = !false;
        textArea1.SetBounds(SupportClass.GetInsets(this)[1] + 552, SupportClass.GetInsets(this)[0] + 0, 204, 398);
        //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
        Controls.Add(textArea1);
        //UPGRADE_ISSUE: Class hierarchy differences between 'java.awt.Panel' and 'System.Windows.Forms.Panel' may cause compilation errors. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1186'"
        panel1 = new System.Windows.Forms.Panel();
        //UPGRADE_ISSUE: Method 'java.awt.Container.setLayout' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_javaawtContainersetLayout_javaawtLayoutManager'"
        /*
        panel1.setLayout(null);*/
        panel1.SetBounds(SupportClass.GetInsets(this)[1] + 0, SupportClass.GetInsets(this)[0] + 0, 553, 589);
        //UPGRADE_TODO: Method 'java.awt.Container.add' was converted to 'System.Windows.Forms.ContainerControl.Controls.Add' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaawtContaineradd_javaawtComponent'"
        Controls.Add(panel1);
        Text = "A Basic Application";
        //}}

        //{{INIT_MENUS
        mainMenuBar = new System.Windows.Forms.MainMenu();
        menu1 = new System.Windows.Forms.MenuItem("File");
        miNew = new System.Windows.Forms.MenuItem("New");
        menu1.MenuItems.Add(miNew);
        miOpen = new System.Windows.Forms.MenuItem("Open...");
        menu1.MenuItems.Add(miOpen);
        miSave = new System.Windows.Forms.MenuItem("Save");
        menu1.MenuItems.Add(miSave);
        miSaveAs = new System.Windows.Forms.MenuItem("Save As...");
        menu1.MenuItems.Add(miSaveAs);
        menu1.MenuItems.Add(new System.Windows.Forms.MenuItem("-"));
        miExit = new System.Windows.Forms.MenuItem("Exit");
        menu1.MenuItems.Add(miExit);
        //mainMenuBar.add(menu1);
        menu2 = new System.Windows.Forms.MenuItem("Edit");
        miCut = new System.Windows.Forms.MenuItem("Cut");
        menu2.MenuItems.Add(miCut);
        miCopy = new System.Windows.Forms.MenuItem("Copy");
        menu2.MenuItems.Add(miCopy);
        miPaste = new System.Windows.Forms.MenuItem("Paste");
        menu2.MenuItems.Add(miPaste);
        //mainMenuBar.add(menu2);
        menu3 = new System.Windows.Forms.MenuItem("Help");
        //UPGRADE_ISSUE: Method 'java.awt.MenuBar.setHelpMenu' was not converted. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1000_javaawtMenuBarsetHelpMenu_javaawtMenu'"
        mainMenuBar.setHelpMenu(menu3);
        miAbout = new System.Windows.Forms.MenuItem("About..");
        menu3.MenuItems.Add(miAbout);
        //mainMenuBar.add(menu3);
        Menu = mainMenuBar;
        //$$ mainMenuBar.move(4,277);
        //}}

        //{{REGISTER_LISTENERS
        SymWindow aSymWindow = new SymWindow(this);
        //UPGRADE_NOTE: Some methods of the 'java.awt.event.WindowListener' class are not used in the .NET Framework. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1308'"
        this.Closing += new System.ComponentModel.CancelEventHandler(aSymWindow.windowClosing);
        SymAction lSymAction = new SymAction(this);
        miOpen.Click += new System.EventHandler(lSymAction.actionPerformed);
        SupportClass.CommandManager.CheckCommand(miOpen);
        miAbout.Click += new System.EventHandler(lSymAction.actionPerformed);
        SupportClass.CommandManager.CheckCommand(miAbout);
        miExit.Click += new System.EventHandler(lSymAction.actionPerformed);
        SupportClass.CommandManager.CheckCommand(miExit);
        SymMouse aSymMouse = new SymMouse(this);
        button4.MouseDown += new System.Windows.Forms.MouseEventHandler(Frame1.mouseDown);
        button4.MouseDown += new System.Windows.Forms.MouseEventHandler(aSymMouse.mousePressed);
        button5.MouseDown += new System.Windows.Forms.MouseEventHandler(Frame1.mouseDown);
        button5.MouseDown += new System.Windows.Forms.MouseEventHandler(aSymMouse.mousePressed);
        button1.MouseDown += new System.Windows.Forms.MouseEventHandler(Frame1.mouseDown);
        button1.MouseDown += new System.Windows.Forms.MouseEventHandler(aSymMouse.mousePressed);
        button2.MouseDown += new System.Windows.Forms.MouseEventHandler(Frame1.mouseDown);
        button2.MouseDown += new System.Windows.Forms.MouseEventHandler(aSymMouse.mousePressed);
        button3.MouseDown += new System.Windows.Forms.MouseEventHandler(Frame1.mouseDown);
        button3.MouseDown += new System.Windows.Forms.MouseEventHandler(aSymMouse.mousePressed);
        //}}
    }
开发者ID:wangchj,项目名称:geo-store-sim,代码行数:101,代码来源:Frame1.cs


注:本文中的System.Windows.Forms.MainMenu.setHelpMenu方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。