Exemple #1
0
        private void PlaceOrder_Load(object sender, EventArgs e)
        {
            DBCustomer    s  = new DBCustomer();
            SqlDataReader DR = s.getNic();

            while (DR.Read())
            {
                comboBox1.Items.Add(DR[0]);
            }
        }
        private void Sales_Returns_Load(object sender, EventArgs e)
        {
            txtdate.Text = System.DateTime.Now.ToString("M/d/yyyy");


            DBCustomer sd = new DBCustomer();

            DR = sd.getNic();
            while (DR.Read())
            {
                cmbcusnic.Items.Add(DR[0]);
            }
        }