Kevin Revalde
Kevin Revalde

Reputation: 3

Populate combo box visual basic

How to change the text if I select the data in the combobox. Heres the picture of my ongoing system.

I would like when I click the Designation, the salary label will be change depends on the salary stored in my database

enter image description here

Upvotes: 0

Views: 71

Answers (1)

jmcilhinney
jmcilhinney

Reputation: 54417

You should bind the DataTable to the Label as well:

Label11.DataBindings.Add("Text", table, "d_salary")

Now the Label will update automatically when a selection is made.

Upvotes: 1

Related Questions