Solved

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

Posted on 2009-05-05
2
515 Views
Last Modified: 2012-05-06
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
Comment
Question by:michael1174
2 Comments
 
LVL 5

Accepted Solution

by:
Aanvik earned 125 total points
Comment Utility
lstActiveClients.Text


0
 
LVL 2

Author Closing Comment

by:michael1174
Comment Utility
thanks!
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now