visual studio 2010 (vb.net window forms)
access 2010 database
multiple forms
tab controls (2 tabs)
groupboxes
I have a BindingSource bound to a single row of a dataset.table
The question is how to call and check the information of a single cell
the cells are bound to textbox.text however on load when i call for information for those on tabpage2, they don't seem to populate fast enough to call from form_Load.
I was wondering if there was a way to call they bound data directly from the biding source
for example:
Private Sub frmEditCust_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'AutoBillDataSet.Customer' table. You can move, or remove it, as needed.
Me.CustomerTableAdapter.Fill(Me.AutoBillDataSet.Customer)
'checks if Same Address is being used and checks box (this is on tabpage 1 and populates fine)
If txtBillTo.Text = txtLocation.Text And txtAttentTo.Text = txtAttention.Text And txtAddressTo.Text = txtAddr.Text And txtCityTo.Text = txtCity.Text And txtZipTo.Text = txtZip.Text And txtStateTo.Text = txtState.Text And mtbPhoneTo.Text = mtbPhone.Text Then
cbSame.Checked = True
End If
'checks Billing cycle and chooses appropriate radio button (tabpage 2, first groupbox)
Select Case txtBillingCycle.Text
Case "Monthly"
rbMonthly.Checked = True
Case "Bi-Monthly"
rbBiMonth.Checked = True
Case "Quarterly"
rbQuarter.Checked = True
Case "Annually"
rbAnnual.Checked = True
Case "Bi-Annually"
rbBiAnnual.Checked = True
End Select
End Sub
this does not populate the radiobutton for the billing cycle if a msgbox is placed before the select case statement I get a blank field but during afterwards the txtBillingCycle.text is populated
so i was wondering if there was a way to call on the bindingSource itself
something like
'checks Billing cycle and chooses appropriate radio button (tabpage 2, first groupbox)
Select Case CustomerBindingSource.DataMember("Billing_Cycle").ToString
Case "Monthly"
rbMonthly.Checked = True
Case "Bi-Monthly"
rbBiMonth.Checked = True
Case "Quarterly"
rbQuarter.Checked = True
Case "Annually"
rbAnnual.Checked = True
Case "Bi-Annually"
rbBiAnnual.Checked = True
End Select
anyone have any ideas