Example #1
0
 public void VB6_AddADODataBinding()
 {
     dcProducts.Refresh();
     _txtField_1.DataBindings.Add("Text", dcProducts.Recordset, "Table.ProductName");
     _txtField_2.DataBindings.Add("Text", dcProducts.Recordset, "Table.ProductDescription");
     _txtField_3.DataBindings.Add("Text", dcProducts.Recordset, "Table.SerialNumber");
     _txtField_4.DataBindings.Add("Text", dcProducts.Recordset, "Table.UnitPrice");
     txtCategory.DataBindings.Add("Text", dcProducts.Recordset, "Table.CategoryID");
     _txtField_5.DataBindings.Add("Text", dcProducts.Recordset, "Table.QuantityPerUnit");
     _txtField_0.DataBindings.Add("Text", dcProducts.Recordset, "Table.ProductID");
     _txtField_6.DataBindings.Add("Text", dcProducts.Recordset, "Table.Unit");
 }
Example #2
0
 public void VB6_AddADODataBinding()
 {
     dcProviders.Refresh();
     _txtField_9.DataBindings.Add("Text", dcProviders.Recordset, "Table.Extension");
     _txtField_14.DataBindings.Add("Text", dcProviders.Recordset, "Table.Notes");
     _txtField_10.DataBindings.Add("Text", dcProviders.Recordset, "Table.FaxNumber");
     _txtField_8.DataBindings.Add("Text", dcProviders.Recordset, "Table.PhoneNumber");
     _txtField_12.DataBindings.Add("Text", dcProviders.Recordset, "Table.ContactFirstName");
     _txtField_13.DataBindings.Add("Text", dcProviders.Recordset, "Table.ContactLastName");
     _txtField_11.DataBindings.Add("Text", dcProviders.Recordset, "Table.ContactTitle");
     _txtField_5.DataBindings.Add("Text", dcProviders.Recordset, "Table.City");
     _txtField_2.DataBindings.Add("Text", dcProviders.Recordset, "Table.EmailAddress");
     _txtField_7.DataBindings.Add("Text", dcProviders.Recordset, "Table.Country/Region");
     _txtField_6.DataBindings.Add("Text", dcProviders.Recordset, "Table.StateOrProvince");
     _txtField_0.DataBindings.Add("Text", dcProviders.Recordset, "Table.ProviderName");
     _txtField_4.DataBindings.Add("Text", dcProviders.Recordset, "Table.PostalCode");
     _txtField_1.DataBindings.Add("Text", dcProviders.Recordset, "Table.PaymentTerms");
 }