How To Multiple Of Two Value In Two Text Box Show Result In Third Textbox

  1. using System;  
  2. using System.Collections.Generic;  
  3. using System.ComponentModel;  
  4. using System.Data;  
  5. using System.Drawing;  
  6. using System.Linq;  
  7. using System.Text;  
  8. using System.Threading.Tasks;  
  9. using System.Windows.Forms;  
  10.   
  11. namespace WindowsFormsApplication1  
  12. {  
  13.     public partial class Form1 : Form  
  14.     {  
  15.         public Form1()  
  16.         {  
  17.             InitializeComponent();  
  18.         }  
  19.   
  20.         private void button1_Click(object sender, EventArgs e)  
  21.         {  
  22.             System.Diagnostics.Process.Start("www.c-sharpcorner.com");  
  23.         }  
  24.   
  25.         private void textBox3_TextChanged(object sender, EventArgs e)  
  26.         {  
  27.             try  
  28.             {  
  29.                 textBox3.Text = (Decimal.Parse(textBox1.Text) * Decimal.Parse(textBox2.Text)).ToString();  
  30.             }  
  31.   
  32.             catch  
  33.             {  
  34.             }  
  35.         }  
  36.   
  37.         private void button2_Click(object sender, EventArgs e)  
  38.         {  
  39.             textBox3.Text = (Decimal.Parse(textBox1.Text) * Decimal.Parse(textBox2.Text)).ToString();  
  40.         }  
  41.     }  
  42. }