2012年9月26日

string 转 label,button等空间类型

摘要: 写代码过程中,遇到问题,要定义一个string ,用for循环增量string的序号,对应前台的不同label,由于string类型无法直接转换成label类型。如何转换呢?for (int i = 1; i <= numleft; i++) { string str = "label" + i + ""; string but = "button_" + i + ""; Button b... 阅读全文

posted @ 2012-09-26 15:12 秋毫 阅读(608) 评论(0) 推荐(0) 编辑

导航