I have a form I am trying something new on.....
I have ComboBox named ComboBoxSt, and a Textbox named TextBox1
Here is my code so far:
What I need to do is to set values for each choice in the combo box. As the values are not subject to change, I'm not using a database, or dataset to store these values.
When the user selects GA in ComboBoxSt, then TextBox1 should automatically update to 1.31, and if the User selects FL then Textbox1 should automatically update to 1.41.
My goal is to have all the states in the Combo box with a set value for Textbox1
When I test the form, I don't get any errors but TextBox1 does not update.
I am new to VB and I could really use some help with this.... Thanks
I have ComboBox named ComboBoxSt, and a Textbox named TextBox1
Here is my code so far:
Code:
Private Sub ComboBoxSt_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBoxSt.SelectedIndexChanged
Select Case ComboBoxSt.SelectedValue
Case "GA"
TextBox1.Text = "1.31"
Case "FL"
TextBox1.Text = "1.41"
Case Else
TextBox1.Text = ""
End Select
End Sub
When the user selects GA in ComboBoxSt, then TextBox1 should automatically update to 1.31, and if the User selects FL then Textbox1 should automatically update to 1.41.
My goal is to have all the states in the Combo box with a set value for Textbox1
When I test the form, I don't get any errors but TextBox1 does not update.
I am new to VB and I could really use some help with this.... Thanks