mgreen0804
MIS
Error 1 Cannot assign to 'Add' because it is a 'method group'
Here is my code;
private void btnAdd_Click(object sender, EventArgs e)
{
lstResults.Items.Clear();
lstResults.Items.Add = ("Food\t \t Like\t Dislike ");
int intIndex = Convert.ToInt32(cboFoods);
}
I dont get it. It is supposed to add the header to the lstbox
Here is my code;
private void btnAdd_Click(object sender, EventArgs e)
{
lstResults.Items.Clear();
lstResults.Items.Add = ("Food\t \t Like\t Dislike ");
int intIndex = Convert.ToInt32(cboFoods);
}
I dont get it. It is supposed to add the header to the lstbox