I want to multiply the text value and combo box value and display it in a orderprice textbox the data types that I use in sql are 'float' for all of these
private void cb_oqty_SelectedIndexChanged(object sender, EventArgs e)
{
int orderprice;
int proprice=Convert.ToInt16(txt_oprice.Text);
int quantity = Convert.ToInt16(cb_oqty.SelectedItem);
orderprice = proprice * quantity;
txt_orderprice.Text = Convert.ToString(orderprice);
txt_orderprice.Update();
}