摘要:
form1 string s = "hello";form2 f2= new form(); f2.tag = s; f2.show();form2 string s = this.tag.toString(); 阅读全文
摘要:
dataGridView.CurrentRow.Cells[num].Value.ToString() 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
private void txt_tel_KeyPress(object sender, KeyPressEventArgs e) { //允许输入的字符 string AstrictChar = "0123456789-"; //「BackSpace」「Delete」后退键正常删除操作 if ((Keys)(e.KeyChar) == Keys.Back || (Keys)(e.KeyChar)... 阅读全文