Autocalculation
When i type the value in one text box automatically it should calculate and display in another textbox
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 attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Jul 29, 2012, 10:25 AM EDT
VulpesRank #55 · 29.2K reputationPosted Jul 16, 2012, 11:22 AM EDT
textBox1.Focus();
Satyapriya NayakRank #47 · 31.5K reputationPosted Jul 16, 2012, 7:32 PM EDT
Another way
private void textBox1_TextChanged(object sender, EventArgs e)
{
decimal a, b;
a = Convert.ToDecimal(textBox1.Text);
b = a * 2;
textBox2.Text = b.ToString();
}
Thanks
rashmi kc89 reputationPosted Jul 16, 2012, 10:38 PM EDT
when i select the 3 from the combobox that value should display in the textbox1 and its answer display in textbox2
Is this correct??????
I am selecting the value from combo but not displaying in the textbox1
textBox1.Focus();
VulpesRank #55 · 29.2K reputationPosted Jul 17, 2012, 1:01 AM EDT
rashmi kc89 reputationPosted Jul 29, 2012, 6:01 AM EDT