What wrong with my code "Filling up the text box depending to the value of
a combo box"??
I have a combo box that have a value of "Internet, Games, print (short),
print (long)"... All I want is if I choose Internet in the combo box the
text box "t_amount" should populate as "20"
here's my code...
Private Sub C_job_SelectedIndexChanged(sender As Object, e As EventArgs)
Handles C_job.SelectedIndexChanged
If C_job.SelectedIndex = "Internet" Then
t_amount.Text = "20"
ElseIf C_job.SelectedIndex = "Games" Then
t_amount.Text = "10"
ElseIf C_job.SelectedIndex = "Print (short)" Then
t_amount.Text = "1"
ElseIf C_job.SelectedIndex = "Print (long)" Then
t_amount.Text = "2"
End If
End Sub
No comments:
Post a Comment