如何使用Savefiledialog保存CheckedListBox(仅)检查项?
如果我使用简单的列表框,那么我就使用它:
If SaveFileDialog1.ShowDialog() = DialogResult.OK Then
Using writer = New StreamWriter(SaveFileDialog1.FileName)
For Each o As Object In clb.Items
writer.WriteLine(o)
Next
End Using
End If
但是,现在我想使用checkedlistbox。
答案 0 :(得分:1)
如何保存CheckedListBox(仅限)选中项目 Savefiledialog?
变化:
For Each o As Object In clb.Items
要:
For Each o As Object In clb.CheckedItems