过去2天Visual Studio很奇怪我已经重新安装它,它并没有解决我的问题。无法调用窗体和类,无法使用属性。设置
我不能调用其他类或形式:
这并不让我用Properties.Settings: http://snag.gy/W3VJn.jpg
代码打开的mods形式:
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;
你在文件的顶部是否有正确的使用语句? – 2013-04-09 12:17:54
我希望每当我的代码没有编译时,我可以简单地重新安装Visual Studio来修复它。 – 2013-04-09 12:17:56
有可能缺少参考。 – ken2k 2013-04-09 12:19:04