vb.net 获取ListBox所有数据到textbox

' 假设listBox1 和 textbox1 已经在你的窗体上定义
Dim sb As New System.Text.StringBuilder()
For Each item As Object In ListBox1.Items
    sb.AppendLine(item.ToString())
Next
textBox1.Text = sb.ToString()

  

posted @ 2024-04-21 12:42  路飞园  阅读(106)  评论(0)    收藏  举报