The problem has been solved.
'Combobox Client code
<pre> Private Sub cmbSupplierList_SelectedIndexChanged(sender As System.Object, e As System.EventArgs) Handles cmbSupplierList.SelectedIndexChanged
'Looping into a suppliers list object
For Each x As csSupplier In objSList '
'Mapping in supplier ID into supplier name
If cmbSupplierList.SelectedItem = x.SupplierName Then
lbltest.Text = x.SupplierID
grdSupplierStock.DataSource = objStock.GetIngredientsBySupplier(x.SupplierID)
End If
Next
End Sub
'Form Load Code
Private Sub InvetoryDetails_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
Dim objSupplier As New csSupplier
Dim objSList As New List(Of csSupplier)
objSList = objSupplier.GetSupplierList() 'Assigning an array list returned by a method in Class Objec List
'Looping into a suppliers list object
For Each x As csSupplier In objSList
cmbSupplierList.Items.Add(x.SupplierName) 'Populating supplier name in combobox
Next
End Sub