Code using Properties.Settings and calling class things
if (SAVE_UN_CHECK.Checked)
{
if (SAVE_UN_CHECK.Text != "")
{
string clearText = SAVE_UN_CHECK.Text.Trim();
string cipherText = CryptorEngine.Encrypt(clearText, true);
//Save textbox text to file
Properties.Settings.Default.USER_USERNAME = cipherText;
USERNAME_TEXT.Text = cipherText;
}
}
What to do? I never had these weird errors.
I already reinstalled Visual Studio 2012 and all its other stuff like SQL Server stuff.
But it didn't fix the problem.
These are the using statements:
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
using System.Threading;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Net;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
Solution
You have to add a reference to the dll that has CryptorEngine and Mods types. Right-click on the project and select Add Reference....
You then have to make sure the using statement at the top of the file points to the namespace where CryptorEngine and Mods are defined.