通过string数组添加ComboBox的子项

2014-12-31 13:46:26  访问(2246) 赞(0) 踩(0)


        /// <summary>
        /// 通过string数组添加ComboBox的子项
        /// </summary>
        /// <param name="cbb"></param>
        /// <param name="theList"></param>
        public void ComboBoxInitByListString(ComboBox cbb, List<string> theList)
        {
            foreach (string s in theList)
            {
                cbb.Items.Add(s);
            }
        }


标签:通过string数组添加ComboBox的子项 

上一条:

下一条:


 

相关评论

评论加载中……
 

发表评论

类型:
内容:
  (Alt+Enter)