using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Sunweaver.Standalone { public partial class IDEStandalone : Form { public IDEStandalone() { InitializeComponent(); var exitButton = new ToolStripMenuItem("Exit"); exitButton.Click += exitButton_Click; exitButton.Name = "exitToolStripMenuItem"; exitButton.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.F4))); exitButton.Size = new System.Drawing.Size(186, 22); exitButton.Text = "Exit"; ideControl1.fileToolStripMenuItem.DropDownItems.Add(exitButton); } void exitButton_Click(object sender, EventArgs e) { this.Close(); } private void ideControl2_Load(object sender, EventArgs e) { } } }