Question

The last 2 days Visual studio is doing weird I already reinstalled it and it didn't fix my problems.

I can't call other classes or forms :

Class : http://snag.gy/7W4dl.jpg

Form: http://snag.gy/lfm8Y.jpg

It doesn't let me use Properties.Settings : http://snag.gy/W3VJn.jpg

Code open mods form :

private void button2_Click_1(object sender, EventArgs e)
{
    Mods modsForm = new Mods();
    modsForm.ShowDialog();
}

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;
Was it helpful?

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top