Dear All,
I have problem with following code :
Private Sub frmProdDataEntry_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim Categories As TechManagement.DBComponents.ProductDB = New TechManagement.DBComponents.ProductDB
cboCategory.DataSource = Categories.GetProductCategories
End Sub
When I run the application, following error message appears:-
An unhandled exception of type 'System.Exception' occurred in system.windows.forms.dll
Additional information: Complex DataBinding accepts as a data source either an IList or an IListSource
Thanks a lot in advance
I have problem with following code :
Private Sub frmProdDataEntry_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim Categories As TechManagement.DBComponents.ProductDB = New TechManagement.DBComponents.ProductDB
cboCategory.DataSource = Categories.GetProductCategories
End Sub
When I run the application, following error message appears:-
An unhandled exception of type 'System.Exception' occurred in system.windows.forms.dll
Additional information: Complex DataBinding accepts as a data source either an IList or an IListSource
Thanks a lot in advance