10.04.2019 Views

Ejercicios de programación .net (nivel inicial)

Se muestra el funcionamiento de los conceptos básicos para programar en .net

Se muestra el funcionamiento de los conceptos básicos para programar en .net

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Public Class Form3<br />

Private Sub Button1_Click(ByVal sen<strong>de</strong>r As System.Object,<br />

ByVal e As System.EventArgs) Handles Button1.Click<br />

Dim r As Integer<br />

r = Val(TextBox1.Text) Mod 2<br />

If r = 0 Then<br />

TextBox2.Text = "NÚMERO PAR"<br />

Else<br />

TextBox2.Text = "NÚMERO IMPAR"<br />

End If<br />

End Sub<br />

Private Sub Button4_Click(ByVal sen<strong>de</strong>r As System.Object,<br />

ByVal e As System.EventArgs) Handles Button4.Click<br />

End<br />

End Sub<br />

Private Sub Button2_Click(ByVal sen<strong>de</strong>r As System.Object,<br />

ByVal e As System.EventArgs) Handles Button2.Click<br />

TextBox1.Text = ""<br />

TextBox2.Text = ""<br />

End Sub<br />

Private Sub Button3_Click(ByVal sen<strong>de</strong>r As System.Object,<br />

ByVal e As System.EventArgs) Handles Button3.Click<br />

Form4.Show()<br />

Me.Hi<strong>de</strong>()<br />

End Sub<br />

End Class<br />

Leonel Navarrete

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!