Ok, I must be doing something wrong.
I've got the following:
public class form1
inherits system.windows.forms.form
private m_Customer as customerentity
...
...
..
Private Sub btnRetrieve_Click.....
m_customer = new CustomerEntity("ALFKI")
txtCustomerID.Databindings.Add("Text", m_customer, "CustomerId")
End Sub
The above throws a:
An unhandled exception of type 'System.ArgumentException' occurred in mscorlib.dll
Additional information: Object type cannot be converted to target type.
Any thoughts? I must be missing something simple....