摘要: 1:文本的初始化 private void Init() { textBoxX1.Text = "域名";//给文本赋值 textBoxX1.Tag = "域名";//文本的tag值 textBoxX1.ForeColor = Color.Silver;//设置文本框字体的颜色 textBoxX1.TextAlign = HorizontalAlignment.Center;//设置文本框文本居中 textBoxX2.Tag = "姓名"; textBoxX2.Text = "姓名"; textBoxX2.ForeColor = Color.Silver; textBoxX2.TextAlig 阅读全文
posted @ 2010-12-20 09:37 紫荆飞翔 阅读(477) 评论(0) 推荐(0) 编辑
摘要: eg1:private void buttonX1_Click(object sender, EventArgs e) { string test = "afsfsdf,sdfsfdsf,sdfdsfsdf,AFSFASF,adfsf,afdsf,,,,,"; string firstUpper = toUpper(test); string uppers = firstUpper.Replace(",",""); Console.WriteLine(test);//原始数据 Console.WriteLine(uppers);//将首字母转换成大写,去除逗号 Console.WriteLin 阅读全文
posted @ 2010-12-20 09:32 紫荆飞翔 阅读(320) 评论(0) 推荐(0) 编辑