为什么提示有问题? ListBox ab=new ListBox(); ab.DataSource =new string[]{"AAA","BBB","CCC"}; this.Controls.Add(ab); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 ListBox ab=new ListBox();ab.DataSource =new string[]{"东","西","南","北"};this.Controls.Add(ab);或者ListBox ab=new ListBox();ab.Items.Add("东");ab.Items.Add("南");ab.Items.Add("西");ab.Items.Add("北");this.Controls.Add(ab); ab.Items.Add 不是加集合 ListBox ab=new ListBox(); //set up properties on the listbox here ab.Items.Add(new String[]{"东","西","南","北"}); this.Controls.Add(ab); ab.Items.Add(new String[]{"东","西","南","北"});不能够显示东南西北 VS2008 Xaml 未加载问题,求 C# 动态改变DataGridView行头标题的内容 请问如何获得一个窗体的Intptr~ C# 调用 C 、C++ 编写的dll C#各种类型的变量默认初始值 高分求救,分不够再加。。。。。 C#里如何获取打印机里打印档案名称,打印档案大小 [求助]設置控件的屬性A,屬性B也跟著變化并在PropertyGrid中呈現...愚翁老大請進! 100分~~~~借这里的人气帮我网站起个名~明天正午12:00结帖 c# vs2005制作安装包,并将c++写的dll打包后,安装报错 高分求解!!! 关于mediaplayer的检测与后台安装
ab.DataSource =new string[]{"东","西","南","北"};
this.Controls.Add(ab);
或者
ListBox ab=new ListBox();
ab.Items.Add("东");
ab.Items.Add("南");
ab.Items.Add("西");
ab.Items.Add("北");
this.Controls.Add(ab);
不是加集合
//set up properties on the listbox here
ab.Items.Add(new String[]{"东","西","南","北"});
this.Controls.Add(ab);