Professional Documents
Culture Documents
Programacion
Programacion
op.SelectedIndexChanged
If op.Text = "Suma" Then
rs.Text = Val(n1.Text) + Val(n2.Text) 'combobox'
End If
If op.Text = "Resta" Then
rs.Text = Val(n1.Text) - Val(n2.Text)
End If
If op.Text = "Multiplicacion" Then
rs.Text = Val(n1.Text) * Val(n2.Text)
End If
If op.Text = "Divicion" Then
rs.Text = Val(n1.Text) / Val(n2.Text)
End If
End Sub
1 combobox= name=op
1 button text=limpiar