Um.
You do realise that what you are doing is decrypting the filename, then trying to open that as a file?
So you will pass "D:\Temp\MyFile.encrypt" to your decryption method, and get back "&!^%£&"£!^£)("!£NB"£F" which you then pass to the file as a valid path...:laugh:
Try:
richTextBox1.Text = encryptDecrypt(System.IO.File.ReadAllText(openFileDialog1.FileName));