private void InvoiceForm_Load(object sender, EventArgs e)
{
comboBox2.Focus();
lstinv = invhnd.Get();// lstinv is inventry type list
comboBox2.DataSource = lstinv;
comboBox2.DisplayMember = "ItemName";
comboBox2.ValueMember = "ItemPrice";
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…