diff --git a/Crypto Notepad/ChangeKeyForm.Designer.cs b/Crypto Notepad/ChangeKeyForm.Designer.cs index 2519b54..b023ecb 100644 --- a/Crypto Notepad/ChangeKeyForm.Designer.cs +++ b/Crypto Notepad/ChangeKeyForm.Designer.cs @@ -1,4 +1,4 @@ -namespace Crypto_Notepad +namespace Crypto_Notepad { partial class ChangeKeyForm { @@ -126,7 +126,6 @@ private void InitializeComponent() this.statusLabel.Size = new System.Drawing.Size(42, 17); this.statusLabel.TabIndex = 7; this.statusLabel.Text = "status"; - this.statusLabel.Visible = false; // // lockPictureBox // diff --git a/Crypto Notepad/ChangeKeyForm.cs b/Crypto Notepad/ChangeKeyForm.cs index 280e0e4..4b8f47c 100644 --- a/Crypto Notepad/ChangeKeyForm.cs +++ b/Crypto Notepad/ChangeKeyForm.cs @@ -34,7 +34,6 @@ private async void AcceptButton_Click(object sender, EventArgs e) SystemSounds.Hand.Play(); statusLabel.ForeColor = Color.Red; statusLabel.Text = "Invalid old key"; - statusLabel.Visible = true; oldKeyTextBox.Text = ""; newKeyTextBox.Text = ""; await Task.Delay(2000); @@ -45,7 +44,6 @@ private async void AcceptButton_Click(object sender, EventArgs e) SystemSounds.Hand.Play(); statusLabel.ForeColor = Color.Red; statusLabel.Text = "New key is the same as old"; - statusLabel.Visible = true; oldKeyTextBox.Text = ""; newKeyTextBox.Text = ""; await Task.Delay(2000);