I have two forms with one listbox on each form. How can I show what I have in the listbox on form1 on form2. I have a button on form1 to go to form2
Private Sub btnform2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnform2.Click
Form2.Show()
Dim sTemp As String = TextBox1.Text & ":" & textbox2.Text & ":" & textbox3.Text & ":" & textbox4.Text & ":" & textbox5.Text
Form2.ListBoxFonts.Items.Add(sTemp) 'add to the listbox
End Sub
But when I click the button it goes to the form2 but it only shows one list and nothing else. When I go to form1 to add another list, it comes up with the listbox on form2 with two list, but when I go to my form2, it only shows the latest one I put in, it never shows two or more list, its probably just one line of code, but could someone help me