-HELP- How do you populate textbox from selecting an item from combobox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wlee1970
    New Member
    • Oct 2014
    • 10

    -HELP- How do you populate textbox from selecting an item from combobox

    What i want and its been a pain to understand on how to put information into a combobox then show up in a textbox, like an example, i have a txtName and txtComment and a cboProductName, when I type a name in txtName and add information in the txtComment it will populate the combobox, but when you select that name from the combobox it should show the information in the txtComment. Here is the code. Look at the bottom of the code on what i am trying to do.

    Code:
    txtComment.Text = cboProductName.SelectedValue.ToString();
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    What is SelectedValue in your above posted code?

    -Frinny

    Comment

    Working...