From 6d1144557507f03fa795527bfe2ae1f7088dd2d9 Mon Sep 17 00:00:00 2001 From: kevin-doolaeghe Date: Tue, 15 Feb 2022 09:41:35 +0100 Subject: [PATCH] updated text 'press ctrl+C to ENable...' to disable --- NoSleepApp/Form1.Designer.cs | 5 +++-- NoSleepApp/Form1.cs | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/NoSleepApp/Form1.Designer.cs b/NoSleepApp/Form1.Designer.cs index 424dc28..7d37ee2 100644 --- a/NoSleepApp/Form1.Designer.cs +++ b/NoSleepApp/Form1.Designer.cs @@ -47,9 +47,10 @@ private void InitializeComponent() this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(37, 38); this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(157, 15); + this.label1.Size = new System.Drawing.Size(159, 15); this.label1.TabIndex = 1; - this.label1.Text = "Press Ctrl+C to enable sleep."; + this.label1.Text = "Press Ctrl+C to disable sleep."; + this.label1.Click += new System.EventHandler(this.label1_Click); // // Form1 // diff --git a/NoSleepApp/Form1.cs b/NoSleepApp/Form1.cs index 0b64bc9..e911d59 100644 --- a/NoSleepApp/Form1.cs +++ b/NoSleepApp/Form1.cs @@ -78,5 +78,9 @@ private void Form1_KeyDown(object sender, KeyEventArgs e) MessageBox.Show("Application is now disabled.", "Ctrl+C detected !"); } } + + private void label1_Click(object sender, EventArgs e) { + + } } }