By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 1,616 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

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

P: 10
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.

Expand|Select|Wrap|Line Numbers
  1. txtComment.Text = cboProductName.SelectedValue.ToString();
  2.  
Oct 3 '14 #1
Share this Question
Share on Google+
1 Reply


Frinavale
Expert Mod 5K+
P: 9,731
What is SelectedValue in your above posted code?

-Frinny
Oct 16 '14 #2

Post your reply

Sign in to post your reply or Sign up for a free account.