Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 611
  • Last Modified:

How to display displaymember of Listbox using c#, .net winforms

My listbox is binded as follows:
this.lstActiveClients.DisplayMember = "name";
this.lstActiveClients.ValueMember = "client_key";

on the SelectedIndexChanged,  i want to set client name textbox to the display member
private void lstActiveClients_SelectedIndexChanged(object sender, EventArgs e)
        {
            this.txtClientName.Text = ??
 
        }

Open in new window

0
michael1174
Asked:
michael1174
1 Solution
 
AanvikCommented:
lstActiveClients.Text


0
 
michael1174Author Commented:
thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now