ListView: set "BackColor" in a SubItem
-
I have a problem: if (radioButton1.Checked) a.SubItems[1].BackColor = Color.Green; else if (radioButton2.Checked) a.SubItems[1].BackColor = Color.Orange; else if (radioButton3.Checked) a.SubItems[1].BackColor = Color.Red; else if (radioButton4.Checked) a.SubItems[1].BackColor = Color.White;
-
I have a problem: if (radioButton1.Checked) a.SubItems[1].BackColor = Color.Green; else if (radioButton2.Checked) a.SubItems[1].BackColor = Color.Orange; else if (radioButton3.Checked) a.SubItems[1].BackColor = Color.Red; else if (radioButton4.Checked) a.SubItems[1].BackColor = Color.White;
Are you constipated? Are rabbits eating the cabbage in your garden? Are you on an airplane that has been hijacked? No? Then perhaps your problem is that you insufficiently described the "problematic" results you are seeing from running the above code, and will get NO help until you do. Be specific. -Jeff
-
I have a problem: if (radioButton1.Checked) a.SubItems[1].BackColor = Color.Green; else if (radioButton2.Checked) a.SubItems[1].BackColor = Color.Orange; else if (radioButton3.Checked) a.SubItems[1].BackColor = Color.Red; else if (radioButton4.Checked) a.SubItems[1].BackColor = Color.White;
And the first problem I spotted was "
You forgot to mention your query
". :)Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson