As the title says, how do you change the highlighted/selected index of the listbox to a new text?
Printable View
As the title says, how do you change the highlighted/selected index of the listbox to a new text?
Where 0 is the index of the item, and foo is the text that it should be changed to.Code:listBox1.Items[0] = "foo";
Hm, I tried that before, it errored. Negative array error.
That looks like VB.
SEARCH before posting!
http://www.google.com/search?hl=en&i...ted+item&meta=
Dot net languages use similar syntaxes. (Aside from VB)
Also, I solved this before. xD