我想知道我可以添加到以下價格:如何將價格添加到我在C#中的組合框項目?
private void OrderForm_Load(object sender, EventArgs e)
{
comboBox1.Items.Add("0");
comboBox1.Items.Add("10");
comboBox1.Items.Add("20");
comboBox1.Items.Add("30");
comboBox1.Items.Add("40");
comboBox1.Items.Add("50");
comboBox1.Items.Add("60");
comboBox1.Items.Add("70");
comboBox1.Items.Add("80");
comboBox1.Items.Add("90");
comboBox1.Items.Add("100");
comboBox2.Items.Add("None");
comboBox2.Items.Add("Chocolate");
comboBox2.Items.Add("Vanilla");
comboBox2.Items.Add("Strawberry");
comboBox3.Items.Add("Paypal");
comboBox3.Items.Add("Visa Electron");
comboBox3.Items.Add("MasterCard");
comboBox4.Items.Add("None");
comboBox4.Items.Add("Small");
comboBox4.Items.Add("Medium");
comboBox4.Items.Add("Large");
}
的號碼價格從「0 - 100」應爲「£15」每一個?
我真的不明白你想要達到什麼樣的效果 – VladL 2013-03-11 23:12:15
這聽起來像你想要的東西:10 Vanilla @ 15美元收費簽證?訂單? – 2013-03-11 23:15:03
我只想知道我是否可以在物品跌落時向物品添加價格。例如,如果我要在組合框中選擇「10」,那麼總共應該出現「15英鎊」... – user2158786 2013-03-11 23:15:58