Hi,
I am trying to disable textbox's on the change of the items in a combobox,
I have tried using the
combobox_selectionchangecommited()
combobox_selectedvaluechanged()
combobox_selectedIndexChanged()
and finally with the code attached
Private Sub cboBoxEmploymentStatus_Click
If cboBoxEmploymentStatus.Items Is "Permanent" Then
txtHourlyTCC.Enabled = False
ElseIf cboBoxEmploymentStatus.Items Is "Temporary" Then
txtMonthlyTCC.Enabled = False
ElseIf cboBoxEmploymentStatus.Items Is "Contractor" Then
txtMonthlyTCC.Enabled = False
txtHourlyTCC.Enabled = False
ElseIf cboBoxEmploymentStatus.Items Is "Learner" Then
txtMonthlyTCC.Enabled = False
End If
End Sub
But none of these seem to be working...
What event do i need to use???
Thanks for the help, awesome site???
Jefferson
I am trying to disable textbox's on the change of the items in a combobox,
I have tried using the
combobox_selectionchangecommited()
combobox_selectedvaluechanged()
combobox_selectedIndexChanged()
and finally with the code attached
Private Sub cboBoxEmploymentStatus_Click
If cboBoxEmploymentStatus.Items Is "Permanent" Then
txtHourlyTCC.Enabled = False
ElseIf cboBoxEmploymentStatus.Items Is "Temporary" Then
txtMonthlyTCC.Enabled = False
ElseIf cboBoxEmploymentStatus.Items Is "Contractor" Then
txtMonthlyTCC.Enabled = False
txtHourlyTCC.Enabled = False
ElseIf cboBoxEmploymentStatus.Items Is "Learner" Then
txtMonthlyTCC.Enabled = False
End If
End Sub
But none of these seem to be working...
What event do i need to use???
Thanks for the help, awesome site???
Jefferson