Reputation: 53
private void button11_Click(object sender, EventArgs e)
{
firstnum = Convert.ToInt32(lbldisplay.Text);
lbldisplay.="0";
operation = "/";
}
}
i am witting a calculator and I get an error in visual studio 2013 at this linelbldisplay.="0";
it says identifier expected, cant find where the problem is
Upvotes: 1
Views: 778
Reputation: 8487
you have extra dot "." in line lbldisplay.="0";
Use Property lbldisplay
of What you want to use
lbldisplay.Text ="0";
Upvotes: 1