Um.
Where do I start?
Why are you calling ToString on an
int
in order to use it as the Collection in a
foreach
?
Why are you trying to use a
foreach
anyway?
When you do
int x = 34;
foreach (int i in x.ToString())
The value of "i" inside the loop will be the value of each individual character in the string form of the integer x: in this case the loop will go twice, with values i == 51 and i == 52 (51 is the character '3' and 52 is the character '4')
So looping on these and trying to delete them is frankly really, really, stupid. If it worked, it would delete two items almost randomly from the combobox.
What are you trying to do, that you think this is a good solution?