Click here to Skip to main content
15,891,702 members
Home / Discussions / C#
   

C#

 
AnswerRe: What is "turning on a trace"? Pin
Stephan Samuel2-Jun-06 9:59
Stephan Samuel2-Jun-06 9:59 
AnswerRe: What is "turning on a trace"? Pin
malikjhangirahmed@hotmail.com2-Jun-06 22:17
malikjhangirahmed@hotmail.com2-Jun-06 22:17 
Question[Message Deleted] Pin
kjosh2-Jun-06 9:23
kjosh2-Jun-06 9:23 
AnswerRe: CLR Pin
Paul Brower2-Jun-06 9:24
Paul Brower2-Jun-06 9:24 
AnswerRe: CLR Pin
Stephan Samuel2-Jun-06 10:02
Stephan Samuel2-Jun-06 10:02 
QuestionListItem is Not Exist in .NET 2.0 Pin
VenkataRamana.Gali2-Jun-06 9:08
VenkataRamana.Gali2-Jun-06 9:08 
AnswerRe: ListItem is Not Exist in .NET 2.0 Pin
Guffa2-Jun-06 9:10
Guffa2-Jun-06 9:10 
AnswerRe: ListItem is Not Exist in .NET 2.0 Pin
Nick Parker2-Jun-06 10:41
protectorNick Parker2-Jun-06 10:41 
Try using DisplayMember and ValueMember properties of the ComboBox with a ArrayList.

public class Person
{
    public Person(string name, int age)
    {
        this.name = name;
        this.age = age;
    }

    public string Name
    {
        get { return name; }
    }

    public int Age
    {
        get { return Age; }
    }

    private string name;
    private int age;
}

    ArrayList people = new ArrayList();
    people.Add(new Person("Nick", 26));
    people.Add(new Person("Bob", 20));
    this.comboBox1.DisplayMember = "Name";
    this.comboBox1.ValueMember = "Age";
    this.comboBox1.DataSource = people;


- Nick Parker
Microsoft MVP - Visual C#
My Blog | My Articles

QuestionDetecting change in screen resolution? Pin
Dan Neely2-Jun-06 8:28
Dan Neely2-Jun-06 8:28 
AnswerRe: Detecting change in screen resolution? Pin
Office Lineman2-Jun-06 8:37
Office Lineman2-Jun-06 8:37 
GeneralRe: Detecting change in screen resolution? Pin
Dan Neely2-Jun-06 9:45
Dan Neely2-Jun-06 9:45 
GeneralRe: Detecting change in screen resolution? Pin
Stephan Samuel2-Jun-06 10:10
Stephan Samuel2-Jun-06 10:10 
GeneralRe: Detecting change in screen resolution? Pin
Dan Neely3-Jun-06 12:12
Dan Neely3-Jun-06 12:12 
QuestionSample Projects Pin
kjosh2-Jun-06 8:18
kjosh2-Jun-06 8:18 
AnswerRe: Sample Projects Pin
Paul Brower2-Jun-06 9:26
Paul Brower2-Jun-06 9:26 
GeneralRe: Sample Projects Pin
kjosh2-Jun-06 10:05
kjosh2-Jun-06 10:05 
GeneralRe: Sample Projects Pin
Paul Brower2-Jun-06 10:25
Paul Brower2-Jun-06 10:25 
GeneralRe: Sample Projects Pin
kjosh2-Jun-06 11:08
kjosh2-Jun-06 11:08 
GeneralRe: Sample Projects Pin
Expert Coming3-Jun-06 14:48
Expert Coming3-Jun-06 14:48 
Questionconnecting to a remote machine that is not part of your network Pin
sopheapteng2-Jun-06 8:09
sopheapteng2-Jun-06 8:09 
AnswerRe: connecting to a remote machine that is not part of your network Pin
Stephan Samuel2-Jun-06 9:53
Stephan Samuel2-Jun-06 9:53 
GeneralRe: connecting to a remote machine that is not part of your network Pin
sopheapteng2-Jun-06 10:12
sopheapteng2-Jun-06 10:12 
GeneralRe: connecting to a remote machine that is not part of your network Pin
Stephan Samuel2-Jun-06 10:34
Stephan Samuel2-Jun-06 10:34 
GeneralRe: connecting to a remote machine that is not part of your network Pin
sopheapteng2-Jun-06 11:03
sopheapteng2-Jun-06 11:03 
GeneralRe: connecting to a remote machine that is not part of your network Pin
Stephan Samuel2-Jun-06 11:30
Stephan Samuel2-Jun-06 11:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.