how to move items from listbox1(which is populated from backend database) to listbox2(which is empty).
Now after that i have to add listbox2 items to database.
Thank u in advance......
RAMAN2233
0
Newbie Poster
Recommended Answers
Jump to PostLike this :
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Index As Byte = 0 Dim Item As New ListItem If ListBox1.SelectedIndex <> -1 Then Index = ListBox1.SelectedIndex Item.Text = ListBox1.SelectedItem.ToString Item.Text = ListBox1.SelectedValue.ToString ListBox2.Items.Add(Item) ListBox1.Items.RemoveAt(Index) End If End Sub Sub …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.