I found the answer to my dilemma!
When a database table is dragged into a control (like a list box), the binding is automatically setup by VB
for the control, but the command line (in this case I am working with the "Person" table from DB "PO Database"):
is created on the main form only, so whenever this method is used on a UserControl (like the Personlist.vb
), that line must be present on the "Load" sub for the control itself, otherwise the binding will not work:
Public Class PersonList
Private Sub PersonList_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
I hope this helps if You got stock with the same problem!!