摘要: for (int i = 0; i < chkLSelect.Items.Count; i++) { if (chkCheck.Checked == true) { chkLSelect.SetItemChecked(i, true); } else { chkLSelect.SetItemChecked(i,false); } } 阅读全文
posted @ 2013-07-15 18:22 秋日的私语(且行且珍惜) 阅读(541) 评论(0) 推荐(0) 编辑
摘要: DialogResult dr = MessageBox.Show("你确定要点击吗", "安全提示", MessageBoxButtons.YesNo); if (dr == DialogResult.Yes) { this.Close(); } else { MessageBox.Show("我好想睡觉啊"); } Form2 form = new Form2(); form.Show(); this.Hide(); 阅读全文
posted @ 2013-07-15 15:35 秋日的私语(且行且珍惜) 阅读(159) 评论(0) 推荐(0) 编辑