This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable,
visit the help center。
7年前关闭。
最近两天,Visual Studio做的很奇怪,我已经重新安装了它,但它没有解决我的问题。
我不能叫其他类(class)或形式:
类:
http://snag.gy/7W4dl.jpg形成:
http://snag.gy/lfm8Y.jpg它不允许我使用Properties.Settings:
http://snag.gy/W3VJn.jpg代码打开mod形式:
private void button2_Click_1(object sender, EventArgs e)
{
Mods modsForm = new Mods();
modsForm.ShowDialog();
}
使用Properties.Settings并调用类事物的代码
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;
}
}
该怎么办?我从来没有这些奇怪的错误。
我已经重新安装了Visual Studio 2012及其所有其他内容,例如SQL Server。
但这并不能解决问题。
这些是using语句:
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;