Código fuente del software educativo

87
CÓDIGO FUENTE DEL SOFTWARE EDUCATIVO “APRENDO JUGANDO” HECHO EN VISUAL BASIC.NET 2010. VENTANA DE BIENVENIDOS Public Class bienvenidos Private Sub bienvenidos_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Timer1.Enabled = True End Sub Private Sub Timer1_Tick (ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick inicio.Show() Me.Hide()

description

CODIGO FUENTE DE SOFTWARE EDUCATIVO "E.B.N MAESTRO MARCOS PEREIRA OLIVERAS" SECTOR LA SALINA. LOS PUERTOS DE ALTAGRACIA, MUNICIPIO MIRANDA.EDO. ZULIA

Transcript of Código fuente del software educativo

Page 1: Código fuente del software educativo

CÓDIGO FUENTE DEL SOFTWARE EDUCATIVO “APRENDO

JUGANDO” HECHO EN VISUAL BASIC.NET 2010.

VENTANA DE BIENVENIDOS

Public Class bienvenidos

Private Sub bienvenidos_Load(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles MyBase.Load

Timer1.Enabled = True

End Sub

Private Sub Timer1_Tick (ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Timer1.Tick

inicio.Show()

Me.Hide()

Page 2: Código fuente del software educativo

Timer1.Enabled = False

End Sub

End Class

VENTANA DE INICIO

Public Class inicio

Private Sub inicio_Load(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles MyBase.Load

End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button1.Click

Page 3: Código fuente del software educativo

lenguaje.Show()

Me.Close()

End Sub

Private Sub PictureBox2_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles PictureBox2.Click

End Sub

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button3.Click

estrategias.show()

Me.Close()

End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button2.Click

matematicas.show()

Me.Close()

End Sub

Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button4.Click

Page 4: Código fuente del software educativo

videos.show()

Me.Close()

End Sub

Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button6.Click

System.Diagnostics.Process.Start("C:\manual\manual.pdf")

End Sub

End Class

PANTALLA DE ACTIVIDADES LENGUA Y LITERATURA

Public Class lenguaje

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button1.Click

Page 5: Código fuente del software educativo

inicio.Show()

Me.Close()

End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button2.Click

abc.show()

Me.Close()

End Sub

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button3.Click

ahorcado.Show()

Me.Hide()

End Sub

End Class

Page 6: Código fuente del software educativo

PANTALLA ESCUHA Y ACIERTA

Public Class abc

Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles PictureBox1.Click

End Sub

Public Sub numeros(ByVal i)

If (i = 1) Then

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\A.wav"

reproductor.Play()

Page 7: Código fuente del software educativo

ElseIf (i = 2) Then

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\B.wav"

reproductor.Play()

ElseIf (i = 3) Then

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\C.wav"

reproductor.Play()

ElseIf (i = 4) Then

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\D.wav"

reproductor.Play()

ElseIf (i = 5) Then

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\E.wav"

reproductor.Play()

ElseIf (i = 6) Then

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\F.wav"

reproductor.Play()

ElseIf (i = 7) Then

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\G.wav"

Page 8: Código fuente del software educativo

reproductor.Play()

ElseIf (i = 8) Then

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\H.wav"

reproductor.Play()

ElseIf (i = 9) Then

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\I.wav"

reproductor.Play()

ElseIf (i = 10) Then

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\J.wav"

reproductor.Play()

ElseIf (i = 11) Then

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\K.wav"

reproductor.Play()

ElseIf (i = 12) Then

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\L.wav"

reproductor.Play()

ElseIf (i = 13) Then

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\M.wav"

reproductor.Play()

Page 9: Código fuente del software educativo

ElseIf (i = 14) Then

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\N.wav"

reproductor.Play()

ElseIf (i = 15) Then

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\O.wav"

reproductor.Play()

ElseIf (i = 16) Then

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\P.wav"

reproductor.Play()

ElseIf (i = 17) Then

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\Q.wav"

reproductor.Play()

ElseIf (i = 18) Then

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\R.wav"

reproductor.Play()

ElseIf (i = 19) Then

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\S.wav"

reproductor.Play()

ElseIf (i = 20) Then

Page 10: Código fuente del software educativo

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\T.wav"

reproductor.Play()

ElseIf (i = 21) Then

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\U.wav"

reproductor.Play()

ElseIf (i = 22) Then

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\V.wav"

reproductor.Play()

ElseIf (i = 23) Then

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\W.wav"

reproductor.Play()

ElseIf (i = 24) Then

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\X.wav"

reproductor.Play()

ElseIf (i = 25) Then

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\Y.wav"

reproductor.Play()

ElseIf (i = 26) Then

Page 11: Código fuente del software educativo

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\Z.wav"

reproductor.Play()

End If

End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button2.Click

Dim Random As New Random()

Dim i As Integer = Random.Next(1, 26)

numeros(i)

End Sub

Private Sub Button11_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button11.Click

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\A.wav"

reproductor.Play()

End Sub

Private Sub Button26_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button26.Click

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\B.wav"

reproductor.Play()

End Sub

Page 12: Código fuente del software educativo

Private Sub Button25_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button25.Click

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\C.wav"

reproductor.Play()

End Sub

Private Sub Button24_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button24.Click

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\D.wav"

reproductor.Play()

End Sub

Private Sub Button23_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button23.Click

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\E.wav"

reproductor.Play()

End Sub

Private Sub Button22_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button22.Click

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\F.wav"

reproductor.Play()

Page 13: Código fuente del software educativo

End Sub

Private Sub Button21_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button21.Click

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\G.wav"

reproductor.Play()

End Sub

Private Sub Button20_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button20.Click

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\H.wav"

reproductor.Play()

End Sub

Private Sub Button19_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button19.Click

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\I.wav"

reproductor.Play()

End Sub

Private Sub Button18_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button18.Click

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\J.wav"

Page 14: Código fuente del software educativo

reproductor.Play()

End Sub

Private Sub Button17_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button17.Click

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\K.wav"

reproductor.Play()

End Sub

Private Sub Button16_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button16.Click

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\L.wav"

reproductor.Play()

End Sub

Private Sub Button15_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button15.Click

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\M.wav"

reproductor.Play()

End Sub

Private Sub Button14_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button14.Click

Dim reproductor As New System.Media.SoundPlayer

Page 15: Código fuente del software educativo

reproductor.SoundLocation = "sonidos\N.wav"

reproductor.Play()

End Sub

Private Sub Button13_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button13.Click

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\O.wav"

reproductor.Play()

End Sub

Private Sub Button12_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button12.Click

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\P.wav"

reproductor.Play()

End Sub

Private Sub Button30_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button30.Click

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\Q.wav"

reproductor.Play()

End Sub

Private Sub Button29_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button29.Click

Page 16: Código fuente del software educativo

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\R.wav"

reproductor.Play()

End Sub

Private Sub Button28_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button28.Click

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\S.wav"

reproductor.Play()

End Sub

Private Sub Button27_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button27.Click

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\T.wav"

reproductor.Play()

End Sub

Private Sub Button35_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button35.Click

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\U.wav"

reproductor.Play()

End Sub

Page 17: Código fuente del software educativo

Private Sub Button34_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button34.Click

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\V.wav"

reproductor.Play()

End Sub

Private Sub Button33_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button33.Click

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\W.wav"

reproductor.Play()

End Sub

Private Sub Button32_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button32.Click

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\X.wav"

reproductor.Play()

End Sub

Private Sub Button31_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button31.Click

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\Y.wav"

reproductor.Play()

End Sub

Page 18: Código fuente del software educativo

Private Sub Button36_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button36.Click

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\Z.wav"

reproductor.Play()

End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button1.Click

lenguaje.Show()

Me.Close()

End Sub

Private Sub abc_Load(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles MyBase.Load

End Sub

End Class

Page 19: Código fuente del software educativo

PANTALLA EL AHORCADO

<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()

> _

Partial Class ahorcado

Inherits System.Windows.Forms.Form

'Form overrides dispose to clean up the component list.

<System.Diagnostics.DebuggerNonUserCode()> _

Protected Overrides Sub Dispose(ByVal disposing As Boolean)

Try

If disposing AndAlso components IsNot Nothing Then

components.Dispose()

End If

Finally

Page 20: Código fuente del software educativo

MyBase.Dispose(disposing)

End Try

End Sub

'Required by the Windows Form Designer

Private components As System.ComponentModel.IContainer

'NOTE: The following procedure is required by the Windows Form

Designer

'It can be modified using the Windows Form Designer.

'Do not modify it using the code editor.

<System.Diagnostics.DebuggerStepThrough()> _

Private Sub InitializeComponent()

Dim resources As

System.ComponentModel.ComponentResourceManager = New

System.ComponentModel.ComponentResourceManager(GetType(aho

rcado))

Me.PictureBox1 = New System.Windows.Forms.PictureBox()

Me.Label3 = New System.Windows.Forms.Label()

Me.Label2 = New System.Windows.Forms.Label()

Me.Button1 = New System.Windows.Forms.Button()

Me.Label1 = New System.Windows.Forms.Label()

Me.ComboBox1 = New System.Windows.Forms.ComboBox()

Me.PictureBox2 = New System.Windows.Forms.PictureBox()

Page 21: Código fuente del software educativo

Me.PictureBox4 = New System.Windows.Forms.PictureBox()

Me.PictureBox5 = New System.Windows.Forms.PictureBox()

CType(Me.PictureBox1,

System.ComponentModel.ISupportInitialize).BeginInit()

CType(Me.PictureBox2,

System.ComponentModel.ISupportInitialize).BeginInit()

CType(Me.PictureBox4,

System.ComponentModel.ISupportInitialize).BeginInit()

CType(Me.PictureBox5,

System.ComponentModel.ISupportInitialize).BeginInit()

Me.SuspendLayout()

'

'PictureBox1

'

Me.PictureBox1.Image =

CType(resources.GetObject("PictureBox1.Image"),

System.Drawing.Image)

Me.PictureBox1.Location = New System.Drawing.Point(549, 111)

Me.PictureBox1.Name = "PictureBox1"

Me.PictureBox1.Size = New System.Drawing.Size(169, 219)

Me.PictureBox1.TabIndex = 17

Me.PictureBox1.TabStop = False

'

'Label3

'

Page 22: Código fuente del software educativo

Me.Label3.AutoSize = True

Me.Label3.BackColor =

System.Drawing.SystemColors.ControlLightLight

Me.Label3.Font = New System.Drawing.Font("Arial", 20.25!,

System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point,

CType(0, Byte))

Me.Label3.Location = New System.Drawing.Point(528, 65)

Me.Label3.Name = "Label3"

Me.Label3.Size = New System.Drawing.Size(217, 32)

Me.Label3.TabIndex = 16

Me.Label3.Text = "EL AHORCADO"

'

'Label2

'

Me.Label2.AutoSize = True

Me.Label2.Location = New System.Drawing.Point(474, 212)

Me.Label2.Name = "Label2"

Me.Label2.Size = New System.Drawing.Size(0, 13)

Me.Label2.TabIndex = 15

Me.Label2.Visible = False

'

'Button1

'

Page 23: Código fuente del software educativo

Me.Button1.BackColor =

System.Drawing.SystemColors.ActiveCaption

Me.Button1.Font = New System.Drawing.Font("Arial", 9.75!,

System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point,

CType(0, Byte))

Me.Button1.Location = New System.Drawing.Point(618, 398)

Me.Button1.Name = "Button1"

Me.Button1.Size = New System.Drawing.Size(74, 32)

Me.Button1.TabIndex = 14

Me.Button1.Text = "ENTRAR"

Me.Button1.UseVisualStyleBackColor = False

'

'Label1

'

Me.Label1.AutoSize = True

Me.Label1.Font = New System.Drawing.Font("Arial", 9.75!,

System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point,

CType(0, Byte))

Me.Label1.Location = New System.Drawing.Point(513, 355)

Me.Label1.Name = "Label1"

Me.Label1.Size = New System.Drawing.Size(67, 16)

Me.Label1.TabIndex = 13

Me.Label1.Text = "Opciones"

'

Page 24: Código fuente del software educativo

'ComboBox1

'

Me.ComboBox1.Font = New System.Drawing.Font("Arial", 9.0!,

System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point,

CType(0, Byte))

Me.ComboBox1.FormattingEnabled = True

Me.ComboBox1.Location = New System.Drawing.Point(589, 352)

Me.ComboBox1.Name = "ComboBox1"

Me.ComboBox1.Size = New System.Drawing.Size(144, 23)

Me.ComboBox1.TabIndex = 12

Me.ComboBox1.Text = "ELIJA SU CATEGORIA"

'

'PictureBox2

'

Me.PictureBox2.Image =

CType(resources.GetObject("PictureBox2.Image"),

System.Drawing.Image)

Me.PictureBox2.Location = New System.Drawing.Point(707, 398)

Me.PictureBox2.Name = "PictureBox2"

Me.PictureBox2.Size = New System.Drawing.Size(38, 42)

Me.PictureBox2.TabIndex = 18

Me.PictureBox2.TabStop = False

'

'PictureBox4

Page 25: Código fuente del software educativo

'

Me.PictureBox4.Image =

CType(resources.GetObject("PictureBox4.Image"),

System.Drawing.Image)

Me.PictureBox4.Location = New System.Drawing.Point(670, 460)

Me.PictureBox4.Name = "PictureBox4"

Me.PictureBox4.Size = New System.Drawing.Size(102, 90)

Me.PictureBox4.TabIndex = 20

Me.PictureBox4.TabStop = False

'

'PictureBox5

'

Me.PictureBox5.Image =

CType(resources.GetObject("PictureBox5.Image"),

System.Drawing.Image)

Me.PictureBox5.Location = New System.Drawing.Point(-76, -34)

Me.PictureBox5.Name = "PictureBox5"

Me.PictureBox5.Size = New System.Drawing.Size(570, 624)

Me.PictureBox5.TabIndex = 21

Me.PictureBox5.TabStop = False

'

'ahorcado

'

Page 26: Código fuente del software educativo

Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!,

13.0!)

Me.AutoScaleMode =

System.Windows.Forms.AutoScaleMode.Font

Me.BackColor = System.Drawing.SystemColors.ControlLightLight

Me.ClientSize = New System.Drawing.Size(784, 562)

Me.Controls.Add(Me.PictureBox5)

Me.Controls.Add(Me.PictureBox2)

Me.Controls.Add(Me.PictureBox1)

Me.Controls.Add(Me.Label3)

Me.Controls.Add(Me.Label2)

Me.Controls.Add(Me.Button1)

Me.Controls.Add(Me.Label1)

Me.Controls.Add(Me.ComboBox1)

Me.Controls.Add(Me.PictureBox4)

Me.Icon = CType(resources.GetObject("$this.Icon"),

System.Drawing.Icon)

Me.Name = "ahorcado"

Me.StartPosition =

System.Windows.Forms.FormStartPosition.CenterScreen

Me.Text = "ahorcado"

CType(Me.PictureBox1,

System.ComponentModel.ISupportInitialize).EndInit()

CType(Me.PictureBox2,

System.ComponentModel.ISupportInitialize).EndInit()

Page 27: Código fuente del software educativo

CType(Me.PictureBox4,

System.ComponentModel.ISupportInitialize).EndInit()

CType(Me.PictureBox5,

System.ComponentModel.ISupportInitialize).EndInit()

Me.ResumeLayout(False)

Me.PerformLayout()

End Sub

Friend WithEvents PictureBox1 As

System.Windows.Forms.PictureBox

Friend WithEvents Label3 As System.Windows.Forms.Label

Friend WithEvents Label2 As System.Windows.Forms.Label

Friend WithEvents Button1 As System.Windows.Forms.Button

Friend WithEvents Label1 As System.Windows.Forms.Label

Friend WithEvents ComboBox1 As

System.Windows.Forms.ComboBox

Friend WithEvents PictureBox2 As

System.Windows.Forms.PictureBox

Friend WithEvents PictureBox4 As

System.Windows.Forms.PictureBox

Friend WithEvents PictureBox5 As

System.Windows.Forms.PictureBox

End Class

Page 28: Código fuente del software educativo

PANTALLA JUEGO

Public Class juego

Public opcionpais(11) As String '

Public opcionanimal(11) As String 'Muy Claro

Public opcionfrutas(11) As String '

Public i As Integer

Public secreta As String

Public adivina As String

Public cont1 As Integer

Public fallos As Integer

Public termino As String '

Private Sub juego_Load(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles MyBase.Load

Page 29: Código fuente del software educativo

'aka muy importante a Lcategoria2 y tiene la Propiedad de Invisible

'Le paso el valos de LCategoria de mi Form1 esto es muy importante puesto k

'nesecito saber k opcion eligio de mi CSelceccion para poder trabajar

Label1.Text = ahorcado.Label2.Text

opcionpais(0) = "chile"

opcionpais(1) = "uruguay"

opcionpais(2) = "paraguay" 'Asigno 5 valores a opcionpais

opcionpais(3) = "brazil"

opcionpais(4) = "argentina"

opcionpais(5) = "alemania"

opcionpais(6) = "albania"

opcionpais(7) = "peru"

opcionpais(8) = "guatemala"

opcionpais(9) = "salvador"

opcionpais(10) = "canada"

opcionanimal(0) = "zorro"

opcionanimal(1) = "jirafa"

opcionanimal(2) = "bufalo" ' Lo mismo a opcionanimal

Page 30: Código fuente del software educativo

opcionanimal(3) = "cocodrilo"

opcionanimal(4) = "aguila"

opcionanimal(5) = "turpial"

opcionanimal(6) = "buho"

opcionanimal(7) = "canario"

opcionanimal(8) = "lagartija"

opcionanimal(9) = "tuqueque"

opcionanimal(10) = "conejo"

opcionfrutas(0) = "naranja"

opcionfrutas(1) = "kiwi"

opcionfrutas(2) = "mango" '= a opcionfrutas

opcionfrutas(3) = "banana"

opcionfrutas(4) = "patilla"

opcionfrutas(5) = "fresa"

opcionfrutas(6) = "guanabana"

opcionfrutas(7) = "melon"

opcionfrutas(8) = "manzana"

opcionfrutas(9) = "pera"

opcionfrutas(10) = "tamarindo"

End Sub

Page 31: Código fuente del software educativo

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button1.Click

PictureBox13.Visible = True

Button2.Visible = True

TextBox1.Visible = True

'tamaño variable k se okupara para imprimir en pantalla el largo de la cadena

--> Len(opcion....(i))

Dim tamaño As Integer

'Si LCategoria2, k no olvidemos tiene el valor de LCategoria del Form1

'es == a Paises se generara una palabra al azar entre las 5 opciones de

opcionpais

If Label1.Text = "Paises" Then

Randomize() 'funcion k genera palabra al azar

Do ' hacemos

i = CInt(Rnd() * 10) ' convertir a i a entero(CInt) ya k Rnd nos devuevle

un decimal

Loop While (i > 11) ' mientras i(=0) sea menor a 4

secreta = (opcionpais(i)) ' le asignamos a secreta el resultado de la

palabra al zar

tamaño = Len(opcionpais(i)) ' asignamos a tamaño un valor entero k sera

el largo de la cadena

Label2.Text = secreta ' imprimimos la palabra secreta

Button2.Enabled = True ' abilitamos el botton1 ya k inicialmente esta

desabilitado

Label3.Text = "Pais" ' Imprimimos pais

Label4.Text = tamaño & " " & "Letras" 'imprimimos el tamaño

End If

Page 32: Código fuente del software educativo

' lo mismo con animales

If Label1.Text = "Animales" Then

Randomize() 'funcion k genera palabra al azar

Do ' hacemos

i = CInt(Rnd() * 10) ' convertir a i a entero(CInt) ya k Rnd nos devuevle

un decimal

Loop While (i > 11) ' mientras i(=0) sea menor a 4

secreta = (opcionanimal(i)) ' le asignamos a secreta el resultado de la

palabra al zar

tamaño = Len(opcionanimal(i)) ' asignamos a tamaño un valor entero k

sera el largo de la cadena

Label2.Text = secreta ' imprimimos la palabra secreta

Button2.Enabled = True ' abilitamos el botton1 ya k inicialmente esta

desabilitado

Label3.Text = "Animal" ' Imprimimos pais

Label4.Text = tamaño & " " & "Letras" 'imprimimos el tamaño

End If

'lo mismo con frutas

If Label1.Text = "Frutas" Then

Randomize() 'funcion k genera palabra al azar

Do ' hacemos

i = CInt(Rnd() * 10) ' convertir a i a entero(CInt) ya k Rnd nos devuevle

un decimal

Loop While (i > 11) ' mientras i(=0) sea menor a 4

Page 33: Código fuente del software educativo

secreta = (opcionfrutas(i)) ' le asignamos a secreta el resultado de la

palabra al zar

tamaño = Len(opcionfrutas(i)) ' asignamos a tamaño un valor entero k sera

el largo de la cadena

Label2.Text = secreta ' imprimimos la palabra secreta

Button2.Enabled = True ' abilitamos el botton1 ya k inicialmente esta

desabilitado

Label3.Text = "Fruta" ' Imprimimos pais

Label4.Text = tamaño & " " & "Letras" 'imprimimos el tamaño

End If

End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button2.Click

Dim c As Integer 'kontador

Dim letra As String 'letra

Dim ContFallos As Integer ' kontador de intentos fallidos

'aka empezamos la letra k ingresamos desde teklado (TextBox)

For c = 1 To Len(secreta) 'desde la primera hasta la ultima letra de la cadena

letra = Mid(secreta, c, 1) 'extraemos la primera de la cadena de nuestras

opcionealogo (secreta)

If letra = LCase(TextBox1.Text) Or letra = " " Then 'si la la letra es = a la k

ingresamos en Texbox1

adivina = gestor(c, letra, Len(secreta)) 'le pasamos nuestra letra al

Gestor

Page 34: Código fuente del software educativo

cont1 = cont1 + 1 'aumentamos 1 a este kontador pera terminar el juego

en caso de ganar

Else

adivina = adivina & " " 'si no espacio

ContFallos = ContFallos + 1 ' si no lo encuentra se aumenta ContFallos

End If

Next

If ContFallos = Len(secreta) Then ' aqui si el ContFallos es igual al tamaño de

la palabra quiere decir que no estaba en ninguno

fallos = fallos + 1 'decalro ahora fallos como publico y en el guardo los

fallos globales

' MsgBox("lleva " & fallos & " fallos") 'le aviso cuantos fallos lleva

If TextBox1.Text = "" Then

MsgBox("INGRESE UNA LETRA")

fallos = 0

Else

'estas son las secuencias de fotografias que se mostaran segun los

fallos+ xD

If fallos = 1 Then

PictureBox7.Visible = False

PictureBox6.Visible = False

PictureBox5.Visible = False

Page 35: Código fuente del software educativo

PictureBox4.Visible = False

PictureBox3.Visible = False

PictureBox2.Visible = False

PictureBox1.Visible = True

End If

If fallos = 2 Then

PictureBox7.Visible = False

PictureBox6.Visible = False

PictureBox5.Visible = False

PictureBox4.Visible = False

PictureBox3.Visible = False

PictureBox2.Visible = True

PictureBox1.Visible = False

End If

If fallos = 3 Then

PictureBox7.Visible = False

PictureBox6.Visible = False

PictureBox5.Visible = False

PictureBox4.Visible = False

PictureBox3.Visible = True

PictureBox2.Visible = False

PictureBox1.Visible = False

End If

If fallos = 4 Then

PictureBox7.Visible = False

Page 36: Código fuente del software educativo

PictureBox6.Visible = False

PictureBox5.Visible = False

PictureBox4.Visible = True

PictureBox3.Visible = False

PictureBox2.Visible = False

PictureBox1.Visible = False

End If

If fallos = 5 Then

PictureBox7.Visible = False

PictureBox6.Visible = False

PictureBox5.Visible = True

PictureBox4.Visible = False

PictureBox3.Visible = False

PictureBox2.Visible = False

PictureBox1.Visible = False

End If

If fallos = 6 Then

PictureBox7.Visible = False

PictureBox6.Visible = True

PictureBox5.Visible = False

PictureBox4.Visible = False

PictureBox3.Visible = False

PictureBox2.Visible = False

PictureBox1.Visible = False

End If

Page 37: Código fuente del software educativo

End If

End If

'si el cont1 es == al largo de la secreta kiere decir k ganamos y se despliega

el Msg

If cont1 = 0 Then

Else

If cont1 = Len(secreta) Then

felicitaciones3.Show()

End If

End If

'Lo mismo en el caso de Perder

If fallos = 6 Then

Button1.Enabled = False

If MsgBox("La Palabra Era " & secreta & " " & "Deseas Volver a jugar??",

MsgBoxStyle.YesNo, "Perdiste") = MsgBoxResult.Yes Then

Me.Close()

Page 38: Código fuente del software educativo

ahorcado.Visible = True

Else : Me.Close()

ahorcado.Close()

lenguaje.Show()

End If

End If

Label5.Text = adivina

TextBox1.Text = ""

Label6.Text = fallos

End Sub

Private Function gestor(ByVal pos As String, ByVal letra As String, ByVal largo

As Integer)

'Nuestra funcion gestor que akomodara las letras

'k utilizamos en el Button1

Dim texto As String

Dim x As Integer

texto = ""

For x = 1 To largo

If x = pos Then

texto = texto & letra

Else

texto = texto & Mid(adivina, x, 1)

End If

Next

Page 39: Código fuente del software educativo

Return texto

End Function

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs)

End Sub

Private Sub Button3_Click_1(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button3.Click

lenguaje.Show()

Me.Hide()

End Sub

End Class

VENTANA DE ACTIVIDADES DE MATEMATICA

Public Class matematicas

Page 40: Código fuente del software educativo

Private Sub PictureBox3_Click(ByVal sender As System.Object,

ByVal e As System.EventArgs) Handles PictureBox3.Click

End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e

As System.EventArgs) Handles Button2.Click

contar.show()

Me.Close()

End Sub

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e

As System.EventArgs) Handles Button3.Click

Dim formEx As New suma()

formEx.Show()

Me.Hide()

End Sub

Private Sub Label1_Click(ByVal sender As System.Object, ByVal e

As System.EventArgs) Handles Label1.Click

End Sub

Page 41: Código fuente del software educativo

Private Sub Button4_Click(ByVal sender As System.Object, ByVal e

As System.EventArgs) Handles Button4.Click

resta.show()

Me.Close()

End Sub

Private Sub Button6_Click(ByVal sender As System.Object, ByVal e

As System.EventArgs) Handles Button6.Click

multiplicacion.show()

Me.Close()

End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e

As System.EventArgs) Handles Button1.Click

inicio.Show()

Me.Close()

End Sub

End Class

Public Class felicitaciones

Page 42: Código fuente del software educativo

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e

As System.EventArgs) Handles Button3.Click

Me.Hide()

End Sub

End Class

Public Class incorrecto

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e

As System.EventArgs) Handles Button3.Click

Me.Hide()

End Sub

End Class

PANTALLA CONTAR

Page 43: Código fuente del software educativo

Public Class contar

Dim a As String = "imagenes\pelota.gif"

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button1.Click

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\1.wav"

reproductor.Play()

limpiar()

PictureBox5.ImageLocation = a

End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button2.Click

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\2.wav"

reproductor.Play()

limpiar()

PictureBox3.ImageLocation = a

PictureBox7.ImageLocation = a

End Sub

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button3.Click

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\3.wav"

Page 44: Código fuente del software educativo

reproductor.Play()

limpiar()

PictureBox1.ImageLocation = a

PictureBox5.ImageLocation = a

PictureBox9.ImageLocation = a

End Sub

Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button4.Click

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\4.wav"

reproductor.Play()

limpiar()

PictureBox1.ImageLocation = a

PictureBox3.ImageLocation = a

PictureBox7.ImageLocation = a

PictureBox9.ImageLocation = a

End Sub

Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button5.Click

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\5.wav"

reproductor.Play()

limpiar()

PictureBox1.ImageLocation = a

Page 45: Código fuente del software educativo

PictureBox3.ImageLocation = a

PictureBox5.ImageLocation = a

PictureBox7.ImageLocation = a

PictureBox9.ImageLocation = a

End Sub

Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button6.Click

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\6.wav"

reproductor.Play()

limpiar()

PictureBox1.ImageLocation = a

PictureBox4.ImageLocation = a

PictureBox7.ImageLocation = a

PictureBox3.ImageLocation = a

PictureBox6.ImageLocation = a

PictureBox9.ImageLocation = a

End Sub

Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button7.Click

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\7.wav"

reproductor.Play()

limpiar()

Page 46: Código fuente del software educativo

PictureBox1.ImageLocation = a

PictureBox2.ImageLocation = a

PictureBox3.ImageLocation = a

PictureBox5.ImageLocation = a

PictureBox7.ImageLocation = a

PictureBox8.ImageLocation = a

PictureBox9.ImageLocation = a

End Sub

Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button8.Click

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\8.wav"

reproductor.Play()

limpiar()

PictureBox1.ImageLocation = a

PictureBox2.ImageLocation = a

PictureBox3.ImageLocation = a

PictureBox4.ImageLocation = a

PictureBox6.ImageLocation = a

PictureBox7.ImageLocation = a

PictureBox8.ImageLocation = a

PictureBox9.ImageLocation = a

End Sub

Page 47: Código fuente del software educativo

Private Sub Button9_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button9.Click

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\9.wav"

reproductor.Play()

limpiar()

PictureBox1.ImageLocation = a

PictureBox2.ImageLocation = a

PictureBox3.ImageLocation = a

PictureBox4.ImageLocation = a

PictureBox5.ImageLocation = a

PictureBox6.ImageLocation = a

PictureBox7.ImageLocation = a

PictureBox8.ImageLocation = a

PictureBox9.ImageLocation = a

End Sub

Private Sub limpiar()

PictureBox1.ImageLocation = ""

PictureBox2.ImageLocation = ""

PictureBox3.ImageLocation = ""

PictureBox4.ImageLocation = ""

PictureBox5.ImageLocation = ""

PictureBox6.ImageLocation = ""

PictureBox7.ImageLocation = ""

Page 48: Código fuente del software educativo

PictureBox8.ImageLocation = ""

PictureBox9.ImageLocation = ""

End Sub

Private Sub Button10_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button10.Click

matematicas.Show()

Me.Close()

End Sub

End Class

PANTALLA SUMA

Page 49: Código fuente del software educativo

Public Class suma

Dim j As Integer = 0

Dim c As Integer = 0

Private Sub suma_Load( _

ByVal sender As System.Object, _

ByVal e As System.EventArgs)

start()

End Sub

Private Sub suma_Load_1(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles MyBase.Load

start()

End Sub

Public Sub start()

'Inicializar la clase Random

Dim Random As New Random()

If (j = 20) Then

matematicas.Show()

Dim a As Integer

a = CStr(c * 2)

matematicas.Label1.Text = a

Me.Hide()

Page 50: Código fuente del software educativo

Else

' generar un random entre 1 y 100

Dim i As Integer = Random.Next(1, 20)

Dim a As Integer

Dim b As Integer

a = CStr(c)

b = CStr(c * 2)

numeros(i)

j = j + 1

TextBox3.Text = ""

End If

End Sub

Public Sub numeros(ByVal i)

If (i = 1) Then

Label3.Text = "10"

Label4.Text = "5"

ElseIf (i = 2) Then

Label3.Text = "6"

Label4.Text = "2"

ElseIf (i = 3) Then

Label3.Text = "5"

Label4.Text = "2"

Page 51: Código fuente del software educativo

ElseIf (i = 4) Then

Label3.Text = "8"

Label4.Text = "3"

ElseIf (i = 5) Then

Label3.Text = "3"

Label4.Text = "3"

ElseIf (i = 6) Then

Label3.Text = "9"

Label4.Text = "6"

ElseIf (i = 7) Then

Label3.Text = "8"

Label4.Text = "4"

ElseIf (i = 8) Then

Label3.Text = "4"

Label4.Text = "3"

ElseIf (i = 9) Then

Label3.Text = "10"

Label4.Text = "7"

ElseIf (i = 10) Then

Label3.Text = "2"

Label4.Text = "1"

ElseIf (i = 11) Then

Label3.Text = "10"

Label4.Text = "9"

Page 52: Código fuente del software educativo

ElseIf (i = 12) Then

Label3.Text = "15"

Label4.Text = "2"

ElseIf (i = 13) Then

Label3.Text = "7"

Label4.Text = "3"

ElseIf (i = 14) Then

Label3.Text = "14"

Label4.Text = "2"

ElseIf (i = 15) Then

Label3.Text = "18"

Label4.Text = "4"

ElseIf (i = 16) Then

Label3.Text = "20"

Label4.Text = "4"

ElseIf (i = 17) Then

Label3.Text = "17"

Label4.Text = "3"

ElseIf (i = 18) Then

Label3.Text = "8"

Label4.Text = "7"

ElseIf (i = 19) Then

Label3.Text = "6"

Label4.Text = "1"

ElseIf (i = 20) Then

Page 53: Código fuente del software educativo

Label3.Text = "5"

Label4.Text = "5"

End If

End Sub

Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button1.Click

Me.Select()

Dim a As Integer

Dim b As Integer

If (Not Integer.TryParse(TextBox3.Text, b)) Then

MsgBox("INGRESE UN VALOR")

TextBox3.Focus()

Exit Sub

End If

If (Not Integer.TryParse(Label3.Text, a)) Then

Page 54: Código fuente del software educativo

MsgBox("Se require un entero")

Label3.Focus()

Exit Sub

End If

If (Not Integer.TryParse(Label4.Text, b)) Then

MsgBox("Se require un entero")

Label4.Focus()

Exit Sub

End If

If TextBox3.Text = CStr(a + b) Then

felicitaciones.show()

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\felicitaciones2.wav"

reproductor.Play()

start()

Dim formEx As New matematicas()

c = c + 1

start()

Else

incorrecto.Show()

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\incorrecto.wav"

reproductor.Play()

Page 55: Código fuente del software educativo

start()

End If

End Sub

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button3.Click

Dim formEx As New matematicas()

formEx.Show()

Me.Close()

End Sub

End Class

PANTALLA DE RESTA

Page 56: Código fuente del software educativo

Public Class resta

Dim j As Integer = 0

Dim c As Integer = 0

Private Sub resta_Load(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles MyBase.Load

start()

End Sub

Public Sub start()

'Inicializar la clase Random

Dim Random As New Random()

If (j = 20) Then

matematicas.Show()

Dim b As Integer

b = CStr(c * 2)

Me.Hide()

Else

Page 57: Código fuente del software educativo

' generar un random entre 1 y 100

Dim i As Integer = Random.Next(1, 20)

Dim a As Integer

Dim b As Integer

a = CStr(c)

b = CStr(c * 2)

numeros(i)

j = j + 1

TextBox3.Text = ""

End If

End Sub

Public Sub numeros(ByVal i)

If (i = 1) Then

Label3.Text = "10"

Label4.Text = "5"

ElseIf (i = 2) Then

Label3.Text = "6"

Label4.Text = "2"

ElseIf (i = 3) Then

Label3.Text = "5"

Label4.Text = "2"

ElseIf (i = 4) Then

Page 58: Código fuente del software educativo

Label3.Text = "8"

Label4.Text = "3"

ElseIf (i = 5) Then

Label3.Text = "3"

Label4.Text = "3"

ElseIf (i = 6) Then

Label3.Text = "9"

Label4.Text = "6"

ElseIf (i = 7) Then

Label3.Text = "8"

Label4.Text = "4"

ElseIf (i = 8) Then

Label3.Text = "4"

Label4.Text = "3"

ElseIf (i = 9) Then

Label3.Text = "10"

Label4.Text = "7"

ElseIf (i = 10) Then

Label3.Text = "2"

Label4.Text = "1"

ElseIf (i = 11) Then

Label3.Text = "10"

Label4.Text = "9"

ElseIf (i = 12) Then

Page 59: Código fuente del software educativo

Label3.Text = "15"

Label4.Text = "2"

ElseIf (i = 13) Then

Label3.Text = "7"

Label4.Text = "3"

ElseIf (i = 14) Then

Label3.Text = "14"

Label4.Text = "2"

ElseIf (i = 15) Then

Label3.Text = "18"

Label4.Text = "4"

ElseIf (i = 16) Then

Label3.Text = "20"

Label4.Text = "4"

ElseIf (i = 17) Then

Label3.Text = "17"

Label4.Text = "3"

ElseIf (i = 18) Then

Label3.Text = "8"

Label4.Text = "7"

ElseIf (i = 19) Then

Label3.Text = "6"

Label4.Text = "1"

ElseIf (i = 20) Then

Label3.Text = "5"

Page 60: Código fuente del software educativo

Label4.Text = "5"

End If

End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button1.Click

Dim a As Integer

Dim b As Integer

If (Not Integer.TryParse(Label3.Text, b)) Then

MsgBox("INGRESE UN VALOR")

TextBox3.Focus()

Exit Sub

End If

If (Not Integer.TryParse(Label3.Text, a)) Then

MsgBox("Se require un entero")

TextBox3.Focus()

Exit Sub

End If

If (Not Integer.TryParse(Label4.Text, b)) Then

MsgBox("Se require un entero")

Label4.Focus()

Exit Sub

End If

Page 61: Código fuente del software educativo

If TextBox3.Text = CStr(a - b) Then

felicitaciones.Show()

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\felicitaciones2.wav"

reproductor.Play()

Dim formEx As New matematicas()

c = c + 1

start()

Else

incorrecto.Show()

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\incorrecto.wav"

reproductor.Play()

start()

End If

End Sub

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button3.Click

Dim formEx As New matematicas()

formEx.Show()

Me.Close()

Page 62: Código fuente del software educativo

End Sub

End Class

PANTALLA DE MULTIPLICACION

Public Class multiplicacion

Dim j As Integer = 0

Dim c As Integer = 0

Private Sub multiplicacion_Load(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles MyBase.Load

start()

End Sub

Page 63: Código fuente del software educativo

Public Sub start()

'Inicializar la clase Random

Dim Random As New Random()

If (j = 20) Then

matematicas.Show()

Dim b As Integer

b = CStr(c * 2)

Me.Hide()

Else

' generar un random entre 1 y 100

Dim i As Integer = Random.Next(1, 20)

Dim a As Integer

Dim b As Integer

a = CStr(c)

b = CStr(c * 2)

numeros(i)

j = j + 1

TextBox3.Text = ""

End If

Page 64: Código fuente del software educativo

End Sub

Public Sub numeros(ByVal i)

If (i = 1) Then

Label3.Text = "10"

Label4.Text = "5"

ElseIf (i = 2) Then

Label3.Text = "6"

Label4.Text = "2"

ElseIf (i = 3) Then

Label3.Text = "5"

Label4.Text = "2"

ElseIf (i = 4) Then

Label3.Text = "8"

Label4.Text = "3"

ElseIf (i = 5) Then

Label3.Text = "3"

Label4.Text = "3"

ElseIf (i = 6) Then

Label3.Text = "9"

Label4.Text = "6"

ElseIf (i = 7) Then

Label3.Text = "8"

Label4.Text = "4"

ElseIf (i = 8) Then

Page 65: Código fuente del software educativo

Label3.Text = "4"

Label4.Text = "3"

ElseIf (i = 9) Then

Label3.Text = "2"

Label4.Text = "7"

ElseIf (i = 10) Then

Label3.Text = "2"

Label4.Text = "1"

ElseIf (i = 11) Then

Label3.Text = "5"

Label4.Text = "9"

ElseIf (i = 12) Then

Label3.Text = "15"

Label4.Text = "2"

ElseIf (i = 13) Then

Label3.Text = "7"

Label4.Text = "3"

ElseIf (i = 14) Then

Label3.Text = "14"

Label4.Text = "2"

ElseIf (i = 15) Then

Label3.Text = "8"

Label4.Text = "4"

ElseIf (i = 16) Then

Page 66: Código fuente del software educativo

Label3.Text = "6"

Label4.Text = "4"

ElseIf (i = 17) Then

Label3.Text = "1"

Label4.Text = "3"

ElseIf (i = 18) Then

Label3.Text = "3"

Label4.Text = "7"

ElseIf (i = 19) Then

Label3.Text = "6"

Label4.Text = "1"

ElseIf (i = 20) Then

Label3.Text = "5"

Label4.Text = "5"

End If

End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button1.Click

Dim a As Integer

Dim b As Integer

If (Not Integer.TryParse(Label3.Text, b)) Then

MsgBox("INGRESE UN VALOR")

Page 67: Código fuente del software educativo

TextBox3.Focus()

Exit Sub

End If

If (Not Integer.TryParse(Label3.Text, a)) Then

MsgBox("Se require un entero")

TextBox3.Focus()

Exit Sub

End If

If (Not Integer.TryParse(Label4.Text, b)) Then

MsgBox("Se require un entero")

Label4.Focus()

Exit Sub

End If

If TextBox3.Text = CStr(a * b) Then

felicitaciones.Show()

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\felicitaciones2.wav"

reproductor.Play()

Dim formEx As New matematicas()

c = c + 1

start()

Else

Page 68: Código fuente del software educativo

incorrecto.Show()

Dim reproductor As New System.Media.SoundPlayer

reproductor.SoundLocation = "sonidos\incorrecto.wav"

reproductor.Play()

start()

End If

End Sub

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button3.Click

Dim formEx As New matematicas()

formEx.Show()

Me.Close()

End Sub

End Class

Page 69: Código fuente del software educativo

VENTANA DE ESTRATEGIAS

Public Class estrategias

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e

As System.EventArgs) Handles Button1.Click

inicio.Show()

Me.Close()

End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e

As System.EventArgs) Handles Button2.Click

ordena.Show()

Page 70: Código fuente del software educativo

Me.Close()

End Sub

End Class

PANTALLA ORDENA Y APRENDE

Public Class ordena

Private Sub restablecer_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button11.Click

Me.Button1.Text = 2

Me.Button2.Text = 4

Me.Button3.Text = 5

Me.Button4.Text = 3

Me.Button5.Text = 7

Page 71: Código fuente del software educativo

Me.Button6.Text = 6

Me.Button7.Text = 9

Me.Button8.Text = 8

Me.Button9.Text = 1

Me.Button10.Text = ""

End Sub

Private Sub todosbotones_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button1.Click, Button2.Click, Button3.Click,

Button4.Click, Button5.Click, Button6.Click, Button7.Click, Button8.Click,

Button9.Click, Button10.Click

Dim btnvacio As New Button

'Dim presionado As New Button

'Dim correcto As Boolean

'presionado = sender 'boton presionado

btnvacio = vacio() 'boton vacio

'correcto = ganar()

'evitando saltos de lado a lado ejemplo: que del 1 se pase al 3

If sender Is Me.Button6 And btnvacio Is Me.Button10 Then Exit Sub

If sender Is Me.Button10 And btnvacio Is Me.Button6 Then Exit Sub

If sender Is Me.Button1 And btnvacio Is Me.Button5 Then Exit Sub

If sender Is Me.Button5 And btnvacio Is Me.Button1 Then Exit Sub

'************************boton 1************************

Page 72: Código fuente del software educativo

If sender Is Me.Button1 Then

If btnvacio Is Me.Button2 Then

btnvacio.Text = sender.text

sender.text = ""

ganar()

End If

If btnvacio Is Me.Button6 Then

btnvacio.Text = sender.text

sender.text = ""

ganar()

End If

End If

'************************boton 2************************

If sender Is Me.Button2 Then

If btnvacio Is Me.Button1 Then

btnvacio.Text = sender.text

sender.text = ""

ganar()

End If

If btnvacio Is Me.Button3 Then

btnvacio.Text = sender.text

sender.text = ""

Page 73: Código fuente del software educativo

ganar()

End If

If btnvacio Is Me.Button7 Then

btnvacio.Text = sender.text

sender.text = ""

ganar()

End If

End If

'************************boton 3************************

If sender Is Me.Button3 Then

If btnvacio Is Me.Button2 Then

btnvacio.Text = sender.text

sender.text = ""

ganar()

End If

If btnvacio Is Me.Button4 Then

btnvacio.Text = sender.text

sender.text = ""

ganar()

End If

If btnvacio Is Me.Button8 Then

btnvacio.Text = sender.text

sender.text = ""

Page 74: Código fuente del software educativo

ganar()

End If

End If

'************************boton 4************************

If sender Is Me.Button4 Then

If btnvacio Is Me.Button3 Then

btnvacio.Text = sender.text

sender.text = ""

ganar()

End If

If btnvacio Is Me.Button5 Then

btnvacio.Text = sender.text

sender.text = ""

ganar()

End If

If btnvacio Is Me.Button9 Then

btnvacio.Text = sender.text

sender.text = ""

ganar()

End If

End If

'************************boton 5************************

If sender Is Me.Button5 Then

If btnvacio Is Me.Button4 Then

btnvacio.Text = sender.text

Page 75: Código fuente del software educativo

sender.text = ""

ganar()

End If

If btnvacio Is Me.Button10 Then

btnvacio.Text = sender.text

sender.text = ""

ganar()

End If

End If

'************************boton 6************************

If sender Is Me.Button6 Then

If btnvacio Is Me.Button1 Then

btnvacio.Text = sender.text

sender.text = ""

ganar()

End If

If btnvacio Is Me.Button7 Then

btnvacio.Text = sender.text

sender.text = ""

ganar()

End If

End If

Page 76: Código fuente del software educativo

'************************boton 7************************

If sender Is Me.Button7 Then

If btnvacio Is Me.Button2 Then

btnvacio.Text = sender.text

sender.text = ""

ganar()

End If

If btnvacio Is Me.Button6 Then

btnvacio.Text = sender.text

sender.text = ""

ganar()

End If

If btnvacio Is Me.Button8 Then

btnvacio.Text = sender.text

sender.text = ""

ganar()

End If

End If

'************************boton 8************************

If sender Is Me.Button8 Then

If btnvacio Is Me.Button3 Then

btnvacio.Text = sender.text

Page 77: Código fuente del software educativo

sender.text = ""

ganar()

End If

If btnvacio Is Me.Button7 Then

btnvacio.Text = sender.text

sender.text = ""

ganar()

End If

If btnvacio Is Me.Button9 Then

btnvacio.Text = sender.text

sender.text = ""

ganar()

End If

End If

'************************boton 9************************

If sender Is Me.Button9 Then

If btnvacio Is Me.Button4 Then

btnvacio.Text = sender.text

sender.text = ""

ganar()

End If

If btnvacio Is Me.Button8 Then

btnvacio.Text = sender.text

Page 78: Código fuente del software educativo

sender.text = ""

ganar()

End If

If btnvacio Is Me.Button10 Then

btnvacio.Text = sender.text

sender.text = ""

ganar()

End If

End If

'************************boton 10************************

If sender Is Me.Button10 Then

If btnvacio Is Me.Button5 Then

btnvacio.Text = sender.text

sender.text = ""

ganar()

End If

If btnvacio Is Me.Button9 Then

btnvacio.Text = sender.text

sender.text = ""

ganar()

End If

End If

Page 79: Código fuente del software educativo

'If correcto = True Then

' MsgBobtnvacio("Orden Correcto", MsgBobtnvacioStyle.Information,

"Felicidades")

' exit Sub

'End If

End Sub

Public Function vacio() As Button

If Me.Button1.Text = "" Then

Return Button1

End If

If Me.Button2.Text = "" Then

Return Button2

End If

If Me.Button3.Text = "" Then

Return Button3

End If

If Me.Button4.Text = "" Then

Return Button4

End If

If Me.Button5.Text = "" Then

Return Button5

End If

If Me.Button6.Text = "" Then

Return Button6

End If

Page 80: Código fuente del software educativo

If Me.Button7.Text = "" Then

Return Button7

End If

If Me.Button8.Text = "" Then

Return Button8

End If

If Me.Button9.Text = "" Then

Return Button9

End If

If Me.Button10.Text = "" Then

Return Button10

End If

Return Nothing

End Function

Public Sub ganar()

If Me.Button1.Text = "1" And Me.Button2.Text = "2" And Me.Button3.Text =

"3" And Me.Button4.Text = "4" And Me.Button5.Text = "5" And Me.Button6.Text =

"6" And Me.Button7.Text = "7" And Me.Button8.Text = "8" And Me.Button9.Text =

"9" Then

felicitaciones2.Show()

End If

End Sub

Page 81: Código fuente del software educativo

Private Sub Button13_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button13.Click

estrategias.Show()

Me.Close()

End Sub

End Class

VENTANA DE VIDEOS

Public Class videos

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button2.Click

Page 82: Código fuente del software educativo

If ComboBox1.Text = "Las Computadoras" Then

video1.Show()

Me.Hide()

End If

If ComboBox1.Text = "El ciclo del agua" Then

video2.Show()

Me.Hide()

End If

If ComboBox1.Text = "Educacion para la Sexualidad" Then

video3.Show()

Me.Hide()

End If

If ComboBox1.Text = "Los Dinosaurios" Then

video4.Show()

Me.Hide()

End If

If ComboBox1.Text = "Lavarse los Dientes" Then

video5.Show()

Me.Hide()

End If

If ComboBox1.Text = "Cuerpos Geometricos" Then

video6.Show()

Me.Hide()

End If

Page 83: Código fuente del software educativo

If ComboBox1.Text = "Anatomia Sistema Digestivo" Then

video7.Show()

Me.Hide()

End If

If ComboBox1.Text = "Ditongo" Then

video8.Show()

Me.Hide()

End If

If ComboBox1.Text = "Fluvi cuida el Agua" Then

video9.Show()

Me.Hide()

End If

End Sub

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button3.Click

inicio.Show()

Me.Close()

End Sub

End Class

VIDEO 1

Public Class video1

Page 84: Código fuente del software educativo

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button3.Click

videos.Show()

Me.Close()

End Sub

End Class

VIDEO 2

Public Class video2

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button3.Click

videos.Show()

Me.Close()

End Sub

End Class

VIDEO 3

Public Class video3

Private Sub ToolTip1_Popup(ByVal sender As System.Object, ByVal e As

System.Windows.Forms.PopupEventArgs) Handles ToolTip1.Popup

End Sub

Page 85: Código fuente del software educativo

Private Sub AxWindowsMediaPlayer1_Enter(ByVal sender As System.Object,

ByVal e As System.EventArgs) Handles AxWindowsMediaPlayer1.Enter

End Sub

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button3.Click

videos.Show()

Me.Close()

End Sub

End Class

VIDEO 4

Public Class video2

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button3.Click

videos.Show()

Me.Close()

End Sub

End Class

VIDEO 5

Public Class video5

Page 86: Código fuente del software educativo

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button3.Click

videos.Show()

Me.Close()

End Sub

End Class

VIDEO 6

Public Class video6

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button3.Click

videos.Show()

Me.Close()

End Sub

End Class

VIDEO 7

Public Class video7

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button3.Click

videos.Show()

Page 87: Código fuente del software educativo

Me.Close()

End Sub

End Class

VIDEO 8

Public Class video8

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button3.Click

videos.Show()

Me.Close()

End Sub

End Class

VIDEO 9

Public Class video9

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As

System.EventArgs) Handles Button3.Click

videos.Show()

Me.Close()

End Sub

End Class