Hello,
Plese help me. Binding data to Microsoft Forms 2.0 TextBox error. Here is my code to bind data
Me.AxTextBox1 is Microsoft Forms 2.0 TextBox
The line
Me.AxTextBox1.DataBindings.Add(New Binding("Text", ds.Tables("Nhansu"), "Hoten"))
raise error An unhandled exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
Additional information: Exception has been thrown by the target of an invocation.
What's wrong here? pls help me
Thank a lot
Jimmy Le
nhan_tiags@yahoo.com
Plese help me. Binding data to Microsoft Forms 2.0 TextBox error. Here is my code to bind data
Code:
Dim da As SqlDataAdapter
Dim cn As SqlConnection
cn = New SqlConnection("Initial Catalog=Nhan;Data Source=localhost;Integrated Security=False;User=sa;Password=")
da = New SqlDataAdapter("Select * from Nhansu", cn)
da.Fill(ds, "Nhansu")
Me.AxTextBox1.DataBindings.Add(New Binding("Text", ds.Tables("Nhansu"), "Hoten"))
The line
Me.AxTextBox1.DataBindings.Add(New Binding("Text", ds.Tables("Nhansu"), "Hoten"))
raise error An unhandled exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
Additional information: Exception has been thrown by the target of an invocation.
What's wrong here? pls help me
Thank a lot
Jimmy Le
nhan_tiags@yahoo.com