Unhandled exception
In VB.NET project I used VB6 ADO Data Control and made some bindings:
ADOBind_Adodc1 = New VB6.MBindingCollection()
ADOBind_Adodc1.DataSource = CType(Adodc1, msdatasrc.DataSource)
ADOBind_Adodc1.Add(Text1, "Text", "Word", Nothing, "Text1")
ADOBind_Adodc1.UpdateMode = VB6.UpdateMode.vbUpdateWhenPropertyChanges
ADOBind_Adodc1.UpdateControls()
Everything works fine, except when I'm entering non valid value to textbox (like entered string's length exceeds field size) exception is generated and program is crashed.
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.Runtime.InteropServices.COMException (0x80040E21): Multiple-step operation generated errors. Check each status value.
at Microsoft.VisualBasic.Compatibility.VB6.IRowsetChange.SetData(Int32 hRow, Int32 hAccessor, IntPtr pData)
at Microsoft.VisualBasic.Compatibility.VB6.Accessor.SetData(Int32 hrow, Object val)
at Microsoft.VisualBasic.Compatibility.VB6.MBinding.SetData()
at Microsoft.VisualBasic.Compatibility.VB6.MBinding.OnPropertyChange(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnTextChanged(EventArgs e)
at System.Windows.Forms.TextBoxBase.WmReflectCommand(Message& m)
at System.Windows.Forms.TextBoxBase.WndProc(Message& m)
at System.Windows.Forms.TextBox.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
I can't catch this exception in no way.
Any ideas how and where I can handle this?
Thanks in advance.

