摘要:
grpShuoming.Equals("",StringComparison.OrdinalIgnoreCase) 阅读全文
摘要:
FORM2: public FORM2(string btnValue, string userNumber) { InitializeComponent(); this.btnUIEOk.Text = btnValue; this.txtUIENumber.Text = userNumber; } FORM1: string btnValue = this.btnUMAdd.te... 阅读全文
摘要:
txtxxx.AppendText(""); 不使用 txtxxx += “”; 阅读全文
摘要:
string t = this.txtNum.Text; int s; if ((int.TryParse(t, out s)) == true) //解a析?t的Ì?值¦Ì是º?否¤?为Int类¤¨¤型¨ª,ê?如¨?果?true,ê?刚?将?t的Ì?值¦Ì给?s 阅读全文
摘要:
Form1 f = new Form1(); f.Owner = this; f.ShowDialog(); getUserData(); private void getUserData() 阅读全文
摘要:
string grpName = this.dgvGroup.SelectedCells[0].Value.ToString(); //主要用于一整行 获取选中行中的的值,其中cells[0]控制哪一列 this.txtGrpName.Text = this.dgvGroup.Rows[this.dgvGroup.CurrentCell.RowIndex].Cells[0].Value.ToS... 阅读全文
摘要:
frmGroupMgr fgm = null; //遍历窗体中是否已存在同名的子窗体 foreach (Form f in this.MdiChildren) { //检测是不是当前子窗体名称 if (f.Text == "组管理") { f.Activate(); ... 阅读全文
摘要:
/// <summary> /// 导出WORD文档 /// </summary> /// <param name="SaveWordName">用于接受SaveFileDialog传过来的保存文件的名称</param> /// <param name="MyDGV">要导出的表</param> private void ExportWord(string SaveWordName, DataGridView MyDGV) { try { //新建文档 Word.Applicatio 阅读全文