From 6bd0bb63ad155f0be705ff7fb437aa858e86a85b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tommy=20=C3=96man?= Date: Sat, 12 Dec 2020 17:28:03 +0100 Subject: [PATCH] Avslutsknapp --- WindowsFormsCore/Form1.Designer.cs | 13 +++++++++++++ WindowsFormsCore/Form1.cs | 5 +++++ WindowsFormsCore/Form1.resx | 4 ++-- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/WindowsFormsCore/Form1.Designer.cs b/WindowsFormsCore/Form1.Designer.cs index c6ca86b..97910b8 100644 --- a/WindowsFormsCore/Form1.Designer.cs +++ b/WindowsFormsCore/Form1.Designer.cs @@ -97,6 +97,7 @@ namespace WindowsFormsCore this.colNum7 = new System.Windows.Forms.ColumnHeader(); this.btnDwn = new System.Windows.Forms.Button(); this.btnDown2 = new System.Windows.Forms.Button(); + this.btnlose = new System.Windows.Forms.Button(); this.gpbInmata.SuspendLayout(); this.SuspendLayout(); // @@ -786,11 +787,22 @@ namespace WindowsFormsCore this.btnDown2.UseVisualStyleBackColor = true; this.btnDown2.Click += new System.EventHandler(this.btnDown2_Click); // + // btnlose + // + this.btnlose.Location = new System.Drawing.Point(713, 414); + this.btnlose.Name = "btnlose"; + this.btnlose.Size = new System.Drawing.Size(75, 23); + this.btnlose.TabIndex = 26; + this.btnlose.Text = "Close"; + this.btnlose.UseVisualStyleBackColor = true; + this.btnlose.Click += new System.EventHandler(this.btnlose_Click); + // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(800, 450); + this.Controls.Add(this.btnlose); this.Controls.Add(this.btnDown2); this.Controls.Add(this.btnDwn); this.Controls.Add(this.lvRows); @@ -895,6 +907,7 @@ namespace WindowsFormsCore private System.Windows.Forms.ColumnHeader colNum7; private System.Windows.Forms.Button btnDwn; private System.Windows.Forms.Button btnDown2; + private System.Windows.Forms.Button btnlose; } } diff --git a/WindowsFormsCore/Form1.cs b/WindowsFormsCore/Form1.cs index 87c9755..52e10dc 100644 --- a/WindowsFormsCore/Form1.cs +++ b/WindowsFormsCore/Form1.cs @@ -243,5 +243,10 @@ namespace WindowsFormsCore { AddNumbersToList2(); } + + private void btnlose_Click(object sender, EventArgs e) + { + this.Close(); + } } } diff --git a/WindowsFormsCore/Form1.resx b/WindowsFormsCore/Form1.resx index d9b3221..9c1cc11 100644 --- a/WindowsFormsCore/Form1.resx +++ b/WindowsFormsCore/Form1.resx @@ -334,7 +334,7 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wgAADsIBFShKgAAAALxJREFUOE/dkbENwkAMRTMKIyClzxpp2SALZICsQINSI6VFikTDCBEVPQOkutbc + wQAADsEBuJFr7QAAALxJREFUOE/dkbENwkAMRTMKIyClzxpp2SALZICsQINSI6VFikTDCBEVPQOkutbc O8mRLxgEoqN4cuz7/zUpROQn3OM3uEcIIYiyfrO4R6BY7st/EsS5se9KtsRQTyGyZapA90hv85CVp/sk 3aUjOFMwgrk5NcI7uVcCGW9jKrXnNhVVwF4dKhXEuC9IkuE6pGJ9rBeZLZN7J8gksC6DKwANEEbilcF2 sgVMUP8I0y3D0wFMYWe+3ax7/BwpHj+xC45fZcSfAAAAAElFTkSuQmCC @@ -343,7 +343,7 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wgAADsIBFShKgAAAALxJREFUOE/dkbENwkAMRTMKIyClzxpp2SALZICsQINSI6VFikTDCBEVPQOkutbc + wQAADsEBuJFr7QAAALxJREFUOE/dkbENwkAMRTMKIyClzxpp2SALZICsQINSI6VFikTDCBEVPQOkutbc O8mRLxgEoqN4cuz7/zUpROQn3OM3uEcIIYiyfrO4R6BY7st/EsS5se9KtsRQTyGyZapA90hv85CVp/sk 3aUjOFMwgrk5NcI7uVcCGW9jKrXnNhVVwF4dKhXEuC9IkuE6pGJ9rBeZLZN7J8gksC6DKwANEEbilcF2 sgVMUP8I0y3D0wFMYWe+3ax7/BwpHj+xC45fZcSfAAAAAElFTkSuQmCC