Advertisement
Guest User

Untitled

a guest
Dec 12th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  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 PrjExcersicesDec13
  12. {
  13. public partial class Form1 : Form
  14. {
  15. private object lblSum;
  16. private object txtNum1;
  17. private object txtNum2;
  18.  
  19. public Form1()
  20. {
  21. InitializeComponent();
  22. }
  23.  
  24. private void textBox1_TextChanged(object sender, EventArgs e)
  25. {
  26. }
  27.  
  28. private void button1_Click(object sender, EventArgs e)
  29. {
  30.  
  31. int a = Convert.ToInt32(textBox1.Text);
  32. int b = Convert.ToInt32(textBox2.Text);
  33. textBox3.Text = (a + b).ToString();
  34. }
  35.  
  36. private void textBox3_TextChanged(object sender, EventArgs e)
  37. {
  38.  
  39. }
  40. }
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement