c# - how i get id from selected name by combobox? -


i need know how id of vip selected name in combobox make selected value = id here code , how add vip money new money

            else             {                 rs.item = combobox1.text;                 rs.operation = "ok ";                 rs.uname = label6.text;                 rs.price = textbox2.text;                 rs.total_price = convert.toint32(textbox1.text) * convert.toint32(textbox2.text);                 rs.store = textbox3.text;                 rs.quantity = convert.toint32(textbox1.text);                 vip.money = convert.toint32(vip.money) + ((convert.toint32(textbox2.text) * convert.toint32(textbox1.text)) - convert.toint32(textbox4.text));                 rs.date = datetime.now;                 i.mount = i.mount - convert.toint32(textbox1.text);                 db.report_sales.addobject(rs);                 db.savechanges();                 messagebox.show("ok");                 checkitem();                 this.close();             }         } 


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -