我怎么能保存为文本的一个ListBox的项目,无论我想。
我可以做这个
但如果我不想保存它,我要建立不同的代码程序再次......
Dim ItemArray(Me.ListBox1.Items.Count - 1) As Object
Me.ListBox1.Items.CopyTo(ItemArray, 0)
Dim Data As String = Join(ItemArray, Environment.NewLine)
My.Computer.FileSystem.WriteAllText("C:\Users\Juljan\Desktop\text.txt", Data, False)