1
private void button11_Click(object sender, EventArgs e)
{
firstnum = Convert.ToInt32(lbldisplay.Text);
lbldisplay.="0";
operation = "/";
}
}
我正在知曉計算器和我在這行lbldisplay.="0";
它說應爲標識符獲得在Visual Studio 2013的錯誤,無法找到問題的所在我越來越標識預期的錯誤
你有額外的點什麼的物業
lbldisplay
「」 in line lbldisplay。=「0」;刪除 – HaveNoDisplayName比我得到這個錯誤錯誤不能隱式地將類型'字符串'轉換爲'System.Windows.Forms.Label' –
你不能直接使用字符串值來標籤。使用這個lbldisplay.Text =「0」; – HaveNoDisplayName