摘要:
for (int i = 0; i < chkLSelect.Items.Count; i++) { if (chkCheck.Checked == true) { chkLSelect.SetItemChecked(i, true); } else { chkLSelect.SetItemChecked(i,false); } } 阅读全文
摘要:
DialogResult dr = MessageBox.Show("你确定要点击吗", "安全提示", MessageBoxButtons.YesNo); if (dr == DialogResult.Yes) { this.Close(); } else { MessageBox.Show("我好想睡觉啊"); } Form2 form = new Form2(); form.Show(); this.Hide(); 阅读全文