diff --git a/Crypto Notepad/ChangeKeyForm.cs b/Crypto Notepad/ChangeKeyForm.cs index 95bf320..f6d7d65 100644 --- a/Crypto Notepad/ChangeKeyForm.cs +++ b/Crypto Notepad/ChangeKeyForm.cs @@ -17,6 +17,7 @@ private void button1_Click(object sender, EventArgs e) MainWindow.key = textBox2.Text; MainWindow.keyChanged = true; this.Close(); + return; } if (textBox1.Text != MainWindow.key) @@ -34,7 +35,7 @@ private void button1_Click(object sender, EventArgs e) { using (new CenterWinDialog(this)) { - MessageBox.Show("New key the same as old!", "Change Key", MessageBoxButtons.OK, MessageBoxIcon.Warning); + MessageBox.Show("New key is the same as old!", "Change Key", MessageBoxButtons.OK, MessageBoxIcon.Warning); } textBox1.Text = ""; textBox2.Text = "";