-2
VS显示我下面的错误:不能键入 '串' 隐式转换为 “布尔”
Syntax error,'(' expected)expected Cannot implicitly convert type 'string' to "bool" Possible mistaken empty statement
private void button3_Click(object sender, EventArgs e)
{
WebClient wc = new WebClient();
string ID1 = wc.DownloadString("https://www.dropbox.com/s/fjsyfzohhbbjmv1/1.txt?dl=1");
string password = textBox1.Text;
if password = ID1;
{
Form7 frm7 = new Form7();
frm7.Show();
}
}
编译错误通常很有用。 '('预期是错误中的第一条主要建议,而这恰恰是错误的(你还需要使用==进行比较,而不是=)。 –
我不想在这里侮辱,但你可能会想回去学习一些关于C#的初学者教程。 – Krythic