I have done a coding for adding items frm listbox to testbax ,after clicking button.
I used the code like this.
Private strBuild As New System.Text.StringBuilder
Private str As String
Protected Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
strBuild.Append(TextBox1.Text)
str = strBuild.ToString()
If str = " " Then
strBuild.Append(ListBox1.SelectedValue)
Else
strBuild.Append(ListBox1.SelectedValue)
strBuild.Append(",")
End If
TextBox1.Text = strBuild.ToString()
Is there any disadvantage for this way of using ListBox to Textbox...
Can we delete(remove) the item in TextBox if i entered it wrongly....
Please advice...
Thanks,
Beena
Enter your message below
Sign in or Join us (it's free).