Guest User

Untitled

a guest
Apr 20th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 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.Windows.Forms;
  9.  
  10. namespace WindowsFormsApplication1
  11. {
  12. public partial class Form1 : Form
  13. {
  14. public Form1()
  15. {
  16. InitializeComponent();
  17. }
  18.  
  19. public long lengte = 0, breedte = 0;
  20.  
  21. void berekenOmtrekEnA()
  22. {
  23. long A = 0, Omtrek = 0;
  24. A = breedte * lengte;
  25. Omtrek = breedte * 2 + lengte * 2;
  26.  
  27. outPut.Text = "De Lengte is : " + lengte + "\n";
  28. outPut.Text += "De Breedte is : " + breedte + "\n\n";
  29. outPut.Text += "De Omtrek is : " + Omtrek + "\n";
  30. outPut.Text += "De oppervlakte is :" + A + "\n";
  31.  
  32.  
  33. }
  34.  
  35. private void inp_Exit_Click(object sender, EventArgs e)
  36. {
  37. Application.Exit();
  38. }
  39.  
  40.  
  41. private void inp_Lengte_KeyDown(object sender, System.Windows.Forms.KeyPressEventArgs e)
  42. {
  43. if ( e.KeyChar == (char)13)
  44. {
  45. MessageBox.Show("ello");
  46. }
  47. }
  48. }
  49. }
Add Comment
Please, Sign In to add comment