// #################################### Form1.cs ######################################### 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 WindowsFormsApp2 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } } } // ################################## Form1.cs end ####################################### // ################################ Form1.Designer.cs ####################################### namespace WindowsFormsApp2 { partial class Form1 { /// /// 必要なデザイナー変数です。 /// private System.ComponentModel.IContainer components = null; /// /// 使用中のリソースをすべてクリーンアップします。 /// /// マネージド リソースを破棄する場合は true を指定し、その他の場合は false を指定します。 protected override void Dispose(bool disposing) { if(disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows フォーム デザイナーで生成されたコード /// /// デザイナー サポートに必要なメソッドです。このメソッドの内容を /// コード エディターで変更しないでください。 /// private void InitializeComponent() { this.menuStrip1 = new System.Windows.Forms.MenuStrip(); this.aAAToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.bBBToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.bBB567ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.bBB789ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.aAA123ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.aAA345ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.menuStrip1.SuspendLayout(); this.SuspendLayout(); // // menuStrip1 // this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.aAAToolStripMenuItem, this.bBBToolStripMenuItem}); this.menuStrip1.Location = new System.Drawing.Point(0, 0); this.menuStrip1.Name = "menuStrip1"; this.menuStrip1.Size = new System.Drawing.Size(800, 24); this.menuStrip1.TabIndex = 0; this.menuStrip1.Text = "menuStrip1"; // // aAAToolStripMenuItem // this.aAAToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.aAA123ToolStripMenuItem, this.aAA345ToolStripMenuItem}); this.aAAToolStripMenuItem.Name = "aAAToolStripMenuItem"; this.aAAToolStripMenuItem.Size = new System.Drawing.Size(43, 20); this.aAAToolStripMenuItem.Text = "AAA"; // // bBBToolStripMenuItem // this.bBBToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.bBB567ToolStripMenuItem, this.bBB789ToolStripMenuItem}); this.bBBToolStripMenuItem.Name = "bBBToolStripMenuItem"; this.bBBToolStripMenuItem.Size = new System.Drawing.Size(40, 20); this.bBBToolStripMenuItem.Text = "BBB"; // // aAA123ToolStripMenuItem // this.aAA123ToolStripMenuItem.Name = "aAA123ToolStripMenuItem"; this.aAA123ToolStripMenuItem.Size = new System.Drawing.Size(180, 22); this.aAA123ToolStripMenuItem.Text = "AAA123"; this.aAA123ToolStripMenuItem.Click += (o, e) => { System.Windows.Forms.MessageBox.Show("AAA123 がクリックされました!!!"); }; // // aAA345ToolStripMenuItem // this.aAA345ToolStripMenuItem.Name = "aAA345ToolStripMenuItem"; this.aAA345ToolStripMenuItem.Size = new System.Drawing.Size(180, 22); this.aAA345ToolStripMenuItem.Text = "AAA345"; this.aAA345ToolStripMenuItem.Click += (o, e) => { System.Windows.Forms.MessageBox.Show("AAA345 がクリックされました!!!"); }; // // bBB567ToolStripMenuItem // this.bBB567ToolStripMenuItem.Name = "bBB567ToolStripMenuItem"; this.bBB567ToolStripMenuItem.Size = new System.Drawing.Size(180, 22); this.bBB567ToolStripMenuItem.Text = "BBB567"; this.bBB567ToolStripMenuItem.Click += (o, e) => { System.Windows.Forms.MessageBox.Show("BBB567 がクリックされました!!!"); }; // // bBB789ToolStripMenuItem // this.bBB789ToolStripMenuItem.Name = "bBB789ToolStripMenuItem"; this.bBB789ToolStripMenuItem.Size = new System.Drawing.Size(180, 22); this.bBB789ToolStripMenuItem.Text = "BBB789"; this.bBB789ToolStripMenuItem.Click += (o, e) => { System.Windows.Forms.MessageBox.Show("BBB789 がクリックされました!!!"); }; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(800, 450); this.Controls.Add(this.menuStrip1); this.MainMenuStrip = this.menuStrip1; this.Name = "Form1"; this.Text = "Form1"; this.menuStrip1.ResumeLayout(false); this.menuStrip1.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); } #endregion private System.Windows.Forms.MenuStrip menuStrip1; private System.Windows.Forms.ToolStripMenuItem aAAToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem aAA123ToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem aAA345ToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem bBBToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem bBB567ToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem bBB789ToolStripMenuItem; } } // ################################ Form1.Designer.cs end ##################################