I have two Datagrids, one above the other with the same width and X starting point. Is there a way that when the horizontal scrollbar of one is moved right-left, the scrollbar of the other moves to the same position as well?
"Nothing fancy needed, please just solve all our problems as quickly as possible."
I'm trying to decrypt some encrypted text that has been Base64 encoded. The following code throws a System.Security.Cryptography.CryptographicException with the message "Length of the data to decrypt is invalid." I'd appreciate it if someone could demontrate the correct way of doing this and/or point out the flaws in my code.
System::String^ Quantum::Util::DecryptString(System::String^ str)
using namespace System::IO;
using namespace System::Security::Cryptography;