首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

怎样才能吧ListBox里的值提取 放到数组里啊该怎么解决

2012-01-10 
怎样才能吧ListBox里的值提取 放到数组里啊我的老师说类型不能隐示的转换为什么啊string[]strthis.lstNew

怎样才能吧ListBox里的值提取 放到数组里啊
我的老师说   类型不能隐示的转换     为什么啊      
string[]str   =   this.lstNewFile.Items;

[解决办法]
try

string[] str = new string[lstNewFile.Items.Count];
lstNewFile.Items.CopyTo(str,0);

热点排行