Hi,
If you populate the listbox with the dataset and click on the items nothing will happen. We must add a few lines of code to set the current row in the DataSet every time the user selects an item in the listbox control.
To change the current location in a DataTable, use the BindingContext object. This object is a property of the form and keeps track of the current position in each DataTable of each DataSet.
Me.BindingContext(myDataSet,"myTable").position=li st1.SelectedIndex
mname.text=myDataSet.Tables("myTable").rows(List1. selectedIndex)(0)
More on this, try this title:"Database programming using
VB.Net and SQL server", Secrets of developing an accounting package is revealed.
Regards
bhar