Solved

Set Combobox datasource to a dictionary

Posted on 2007-11-28
1
3,538 Views
Last Modified: 2008-04-14
Is there a way to set the datasource of a combobox to a dictionary (System.Collections.Generic.Dictionary).  I'm not sure what to put for the ValueMember and DisplayMember properties to make this work.  
0
Comment
Question by:vb9666
1 Comment
 
LVL 24

Accepted Solution

by:
Jeff Certain earned 125 total points
ID: 20365920
I found this a while ago... it should be what you're after:
http://www.madprops.org/cs/blogs/mabster/archive/2005/10/05/Bind-a-ComboBox-to-a-generic-Dictionary.aspx

Basically, you use "Value" and "Key" as the members.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

759 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

20 Experts available now in Live!

Get 1:1 Help Now