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
Public Class Form6 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim num As Double num = Val(TextBox1.Text) If num = 0 Then TextBox2.Text = "Ingrese un Número Diferente de Cero" TextBox1.Text = "" TextBox2.Text = "" TextBox1.Focus() End If End Sub If num < 0 Then TextBox2.Text = "EL NÚMERO ES NEGATIVO" Else TextBox2.Text = "EL NÚMERO ES POSITIVO" End If Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click End End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Form7.Show() Me.Hide() End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click TextBox1.Text = "" TextBox2.Text = "" TextBox1.Focus() End Sub End Class Leonel Navarrete
Serie Fibonacci Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click End Sub End Class Dim N, f1, f2, s As Integer N = Val(TextBox1.Text) f1 = 0 f2 = 1 For I = 1 To N Step 1 f1 = f2 f2 = s TextBox2.Text = TextBox2.Text & " " & s ListBox1.Items.Add(TextBox2.Text) s = f1 + f2 Next Leonel Navarrete
- Page 7 and 8: Manipular caracteres con SPACE Dise
- Page 9 and 10: Enlazar Formularios Programación F
- Page 11 and 12: Convertir Caracteres Programación
- Page 13 and 14: EDADES Leonel Navarrete
- Page 15 and 16: Select Case Con LABEL Leonel Navarr
- Page 17 and 18: Usuario y Contraseña Leonel Navarr
- Page 19 and 20: Juego de Cartas Leonel Navarrete
- Page 21 and 22: Funciones Y Procedimientos Leonel N
- Page 23 and 24: Funciones Y Procedimientos Leonel N
- Page 25 and 26: Propiedades de los objetos Public C
- Page 27 and 28: Propiedades de los objetos Public C
- Page 29 and 30: Propiedades de los objetos Public C
- Page 31 and 32: Propiedades de los objetos Public C
- Page 33 and 34: Propiedades de los objetos Public C
- Page 35 and 36: Utilizando un Módulo Public Class
- Page 37 and 38: Utilizando un Módulo Public Class
- Page 39 and 40: Utilizando un Módulo Public Class
- Page 41 and 42: Public Class Form1 Private Sub Butt
- Page 43 and 44: Public Class Form2 Private Sub sala
- Page 45 and 46: MouseMove Public Class Form4 Privat
- Page 47 and 48: Tiempo del día Public Class Form1
- Page 49 and 50: Bucle For Public Class Form1 Privat
- Page 51 and 52: Public Class Form1 Private Sub Butt
- Page 53 and 54: Public Class Form3 Private Sub Butt
- Page 55 and 56: Public Class Form5 Private Sub Butt
- Page 57: Public Class Form7 Dim mensual As D
- Page 61 and 62: Public Class Form1 Private Sub Butt
- Page 63 and 64: Número Primo Public Class Form1 Pr
- Page 65 and 66: Public Class Form1 Private Sub Chec
- Page 67 and 68: For each Public Class Form1 Private
- Page 69 and 70: Vectores sumar pares - impares Publ
- Page 71 and 72: Matrices Public Class Form1 Private
- Page 73 and 74: Aplicación Leonel Navarrete
- Page 75 and 76: Private Sub Button2_Click(ByVal sen
- Page 77 and 78: Private Sub Button4_Click(ByVal sen
- Page 79 and 80: Public Class Form1 Private Sub Butt
- Page 81 and 82: While - Do - Do While Public Class
- Page 83: Private Sub Button2_Click(ByVal sen
Public Class Form6<br />
Private Sub Button1_Click(ByVal sen<strong>de</strong>r As System.Object, ByVal e As<br />
System.EventArgs) Handles Button1.Click<br />
Dim num As Double<br />
num = Val(TextBox1.Text)<br />
If num = 0 Then<br />
TextBox2.Text = "Ingrese un Número Diferente <strong>de</strong> Cero"<br />
TextBox1.Text = ""<br />
TextBox2.Text = ""<br />
TextBox1.Focus()<br />
End If<br />
End Sub<br />
If num < 0 Then<br />
TextBox2.Text = "EL NÚMERO ES NEGATIVO"<br />
Else<br />
TextBox2.Text = "EL NÚMERO ES POSITIVO"<br />
End If<br />
Private Sub Button4_Click(ByVal sen<strong>de</strong>r As System.Object, ByVal e As<br />
System.EventArgs) Handles Button4.Click<br />
End<br />
End Sub<br />
Private Sub Button3_Click(ByVal sen<strong>de</strong>r As System.Object, ByVal e As<br />
System.EventArgs) Handles Button3.Click<br />
Form7.Show()<br />
Me.Hi<strong>de</strong>()<br />
End Sub<br />
Private Sub Button2_Click(ByVal sen<strong>de</strong>r As System.Object, ByVal e As<br />
System.EventArgs) Handles Button2.Click<br />
TextBox1.Text = ""<br />
TextBox2.Text = ""<br />
TextBox1.Focus()<br />
End Sub<br />
End Class<br />
Leonel Navarrete