Answers for "array display member listbox"

C#
0

windows forms link listbox to array

List<string> listToBind = new List<string> { "AA", "BB", "CC" };
this.listBox1.DataSource = listToBind;
Posted by: Guest on November-06-2020
0

windows forms link listbox to array

public class MyClass
{
    public int Id { get; set; }
    public string Text { get; set; }
    public MyClass(int id, string text)
    {
        this.Id = id;
        this.Text = text;
    }
}
Posted by: Guest on November-06-2020

C# Answers by Framework

Browse Popular Code Answers by Language