主题:请教ListBox控件问题
设置一个Button1和一个ListBox1,
按下Button1按钮,想给ListBox1里加一个字符串,
如:
ListBox1->Items->Strings[0] = "abc";
这样就可以,
但是:
ListBox1->Items->Strings[2] = "abc";
就出错,
也就是说Strings下标超过0就出错了,为什么?
谢了~~
按下Button1按钮,想给ListBox1里加一个字符串,
如:
ListBox1->Items->Strings[0] = "abc";
这样就可以,
但是:
ListBox1->Items->Strings[2] = "abc";
就出错,
也就是说Strings下标超过0就出错了,为什么?
谢了~~