Mrm2299

Calculadora

Jan 21st, 2014
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.91 KB | None | 0 0
  1. Public Class Form1
  2.  
  3.     Private Sub PictureBox1_Click(sender As Object, e As EventArgs)
  4.  
  5.     End Sub
  6.  
  7.     Private Sub Resultado_Click(sender As Object, e As EventArgs) Handles Resultado.Click
  8.         Dim numero1, numero2 As Integer
  9.         Dim r1 As Double
  10.         numero1 = N1.Text
  11.         numero2 = N2.Text
  12.         If Suma.Checked Then
  13.             MsgBox(numero1 + numero2, MsgBoxStyle.Exclamation, "resultado")
  14.         ElseIf (Resta.Checked) Then
  15.             MsgBox(numero1 - numero2, MsgBoxStyle.Exclamation, "resultado")
  16.         ElseIf (Multiplicacion.Checked) Then
  17.             MsgBox(numero1 * numero2, MsgBoxStyle.Exclamation, "resultado")
  18.         ElseIf (Division.Checked) Then
  19.             MsgBox(numero1 / numero2, MsgBoxStyle.Exclamation, "resultado")
  20.  
  21.  
  22.  
  23.         End If
  24.  
  25.  
  26.     End Sub
  27.  
  28.     Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
  29.  
  30.     End Sub
  31. End Class
Advertisement
Add Comment
Please, Sign In to add comment