摘要: 1.添加项checkedListBox1.Items.Add("蓝色");checkedListBox1.Items.Add("红色");checkedListBox1.Items.Add("黄色");2.判断第i项是否选中,选中为true,否则为falseif(checkedListBox1.GetItemChecked(i)){returntrue;}else{returnfalse;}3.设置第i项是否选中checkedListBox1.SetItemChecked(i,true);//true改为false为没有选中。4.设置 阅读全文
posted @ 2012-09-13 11:51 i贾小林 阅读(712) 评论(0) 推荐(0) 编辑
摘要: break就是直接跳出该层循环continue就是直接进入该层循环的下一次迭代return就是直接退出程序或函数返回了大概的关系如下return>break>continue 阅读全文
posted @ 2012-09-13 09:29 i贾小林 阅读(123) 评论(0) 推荐(0) 编辑