you have it commented out... is that not working? Either of these should return what the combobox value is. Not sure what your having trouble with there cause it seems like u have the right idea..?
If I hooked this up in design mood it would look like this
cboName.SelectedValue = computersbindingsource - CWID
How do you hook this up in code?
I am trying to pass the selected value to my computer table
but this does not work in code what would be the equivialant value in code. I am trying to get my customers and computers synced in my cboName_SelectedIndexChanged1 event and it is not working
Private Sub cboName_SelectedIndexChanged1(ByVal sender As Object, ByVal e As System.EventArgs) Handles cboName.SelectedIndexChanged
Dim serial As String = SerialNumberTextBox.Text
'Dim cwid As String = cboName.Text
'Me.AMSDataSet.EnforceConstraints = False
cboName.DataSource = Me.CustomersTableAdapter.GetDataByFullName()
cboName.DisplayMember = "FullName"
cboName.ValueMember = "CWID"
And I have a form that I am trying to build with computers and software but I also have a combobox on the form that I have populated with the Customers and I am trying to select a customer from the combobox and the form show the computer related to that customer and the software related to that computer. I tried doing this in design mode and I can get the computers to change when I make a selection but the software does not change how can I get that portion to work.