Exemplo n.º 1
0
        private void FindCustomer_Load(object sender, EventArgs e)
        {
            BLL.BLL ss = new BLL.BLL();
            DataSet ds = ss.FindCustomer_Selecr();
            int     hs = ds.Tables[0].Rows.Count;

            listBox1.DisplayMember = "name";
            listBox1.ValueMember   = "phoneno";
            listBox1.DataSource    = ds.Tables[0];
            if (listBox1.Items.Count != 0)
            {
                listBox1.SelectedIndex = 0;
            }
        }