摘要: 有的时候,需要用到很多的按钮或者是其他的控件,总不能一个一个去拖,正好项目中用到就想了一下,怎么办,刚开始是for (int i = 0; i < 4; i++) { Button b= new Button(); b.Name = "btn" + i.ToString(); b.Width = 100; b.Height = 100; b.Location = new System.Drawing.Point(b.Location.X +100, b.Location.Y +100); this.Controls.Add(b);}为什么只有一个么,,因为你所添加按钮 阅读全文
posted @ 2013-11-08 10:09 live in finally 阅读(384) 评论(2) 推荐(0) 编辑
摘要: public static string GetChinesePell(string chinese) { string tempChar = ""; char[] temp = chinese.ToCharArray(); for (int i = 0; i 1) { int area = (short)arrCN[0]; int pos = (short)arrCN[1]; int code = (area << 8) + pos; int[] areacode = { 45217, 45253, 45761, 46318, 46826, 47010, 47 阅读全文
posted @ 2013-11-08 10:07 live in finally 阅读(362) 评论(0) 推荐(1) 编辑