I'm a newbie to programming and I'm trying to put together a ADO program in visual studio.net using VB. What I need to do is bind data from the first record in a dataset to a text box. This is the code I have currently:
I've also tried this:
This is the error I get with both of the above:
VB.NET:
txtType.DataBindings.Add("Text", objDataSet, "tblMaps.fldtype")
I've also tried this:
VB.NET:
txtType.DataBindings.Add(New Binding("Text", objDataSet, "tblMaps.fldtype"))
This is the error I get with both of the above:
Can anybody tell me what I'm doing wrong? Thanks a lot.An unhandled exception of type 'System.ArgumentException' occurred in system.windows.forms.dll
Additional information: Cannot create a child list for field tblMaps.