From 74a35540c30a454c68fcef4553ff70c70e995219 Mon Sep 17 00:00:00 2001 From: Sigmanor Date: Wed, 27 Jan 2016 18:41:38 +0200 Subject: [PATCH] Fixed bug with the search panel Fixed bug: when you open a new file with the opened search panel, all the text becomes highlighted. --- Crypto Notepad/Form1.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Crypto Notepad/Form1.cs b/Crypto Notepad/Form1.cs index fc16320..c0aaadf 100644 --- a/Crypto Notepad/Form1.cs +++ b/Crypto Notepad/Form1.cs @@ -75,7 +75,10 @@ void DecryptAES() return; } publicVar.okPressed = false; - + if (panel1.Visible == true) + { + findToolStripMenuItem2_Click(this, new EventArgs()); + } try { string opnfile = File.ReadAllText(OpenFile.FileName);