How can I add items in a ListBox inside a form, and the form inside 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 has full listbox anchors.
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, within Split? I was searching, would it be by Controls?