摘要: form1 string s = "hello";form2 f2= new form(); f2.tag = s; f2.show();form2 string s = this.tag.toString(); 阅读全文
posted @ 2010-06-02 11:20 王绚文 阅读(293) 评论(0) 推荐(0) 编辑
摘要: dataGridView.CurrentRow.Cells[num].Value.ToString() 阅读全文
posted @ 2010-06-02 11:14 王绚文 阅读(559) 评论(0) 推荐(1) 编辑
摘要: private void button1_Click(object sender, EventArgs e) { string username = txt_username.Text.Trim(); string sex = cob_sex.Text.Trim(); string createtime = dt_time.Value.Date.ToShortDateString(); strin... 阅读全文
posted @ 2010-06-02 10:37 王绚文 阅读(334) 评论(0) 推荐(0) 编辑
摘要: private void txt_username_KeyPress(object sender, KeyPressEventArgs e) { if ((e.KeyChar > 0 && e.KeyChar < 7) || (e.KeyChar > 9 && e.KeyChar < 177)) { e.Handled = true; Mes... 阅读全文
posted @ 2010-06-02 10:35 王绚文 阅读(271) 评论(0) 推荐(0) 编辑
摘要: private void txt_tel_KeyPress(object sender, KeyPressEventArgs e) { //允许输入的字符 string AstrictChar = "0123456789-"; //「BackSpace」「Delete」后退键正常删除操作 if ((Keys)(e.KeyChar) == Keys.Back || (Keys)(e.KeyChar)... 阅读全文
posted @ 2010-06-02 10:34 王绚文 阅读(189) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ public enum TimeofDay { Morning, Afternoon, Evening } class Program { static void Wri... 阅读全文
posted @ 2010-05-21 21:21 王绚文 阅读(249) 评论(0) 推荐(1) 编辑