I want to multiply two values
i want to multiply two values one from the text box and the other from the combobox and put the values in next text box
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted Dec 6, 2012, 4:14 AM EST
VulpesRank #55 · 29.2K reputationPosted Dec 6, 2012, 4:14 AM EST
Sandeep Singh ShekhawatRank #147 · 15.6K reputationPosted Dec 6, 2012, 6:45 PM EST
private void button1_Click(object sender, EventArgs e)
{
int firstNumber = Convert.ToInt32( txtNumber.Text);
int secondNumber = Convert.ToInt32(cmdNumber.Text);
txtOutput.Text = (firstNumber * secondNumber).ToString();
}