Hi all,

I have a group box with many controls on it. What I am looking to do is when the Part-time combobox equals Yes, the Full-time combobox equals no (or vice versa)

I have tried many different things and I get no errors, yet the values do not change for me.

This is what I currently have. I have tried a for each loop in the groupboxes controls and that doesnt even work for me
vb Code:
  1. Private Sub cboPartTime_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cboPartTime.SelectedIndexChanged
  2.         With cboFullTime
  3.             If cboPartTime.SelectedIndex = 0 Then 'Yes
  4.                 .SelectedIndex = 1 'No
  5.             Else
  6.                 .SelectedIndex = 0 'Yes
  7.             End If
  8.         End With
  9.     End Sub
Any ideas? Thanks in advance