0
How can I add items to a Listbox within a form, and the form within a Splitcontainer.
Button(Load Listbox) [home.Vb (Windowsform)]:
Dim naveg As New frmListBox
naveg.TopLevel = False
SplitContainer1.Panel2.Controls.Add(naveg)
naveg.Show()
Button(Add item) [home.Vb (Windowsform)]:
adicionarItems("Testando...")
Listbox [frmListBox.Vb (Windowsform)] is borderless and with full anchor listbox.
Functions [ex.functions.Vb (Modules)]
Public Function adicionarItems(ByVal valor As String)
frmListBox.ListBox1.Items.Add(valor)
End Function
Above is all the data, how can I add items in the listbox, inside Split? I’ve been searching, would be by Controls?