百问十九

怎样获取checkedListBox中选中的项的文本?

编辑:Simone 2025-05-01 19:49:33 579 阅读

怎样获取checkedListBox中选中的项的文本?

string output = string.Empty; for (int i = 0; i < checkedListBox1.CheckedIndices.Count; i++) { output += checkedListBox1.Items[ checkedListBox1.CheckedIndices[i]].ToString() + "\r\n "; } MessageBox.Show(output);

MsgBox(CheckedListBox1.SelectedItem.ToString)

版权声明:本站【百问十九】文章素材来源于网络或者用户投稿,未经许可不得用于商用,如转载保留本文链接:https://www.baiwen19.com/answer/241414.html

相关推荐