my vb.net will not use listbox1.selecteditems it always comes up with a blue line underneath even though when i search online everyone is using this.
我的目标是将选定的项目列入案文箱。
Protected Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim li As ListItem
For Each li In ListBox1.Items
If li.Selected Then
TextBox1.Text &= li.Text & vbCrLf
End If
UpdatePanel2.Update()
Next
End Sub
End Class