Anda di halaman 1dari 2

Public Class Form1 Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.

CheckedChanged End Sub Private Sub CheckBox2_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox2.CheckedChanged End Sub Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, By Val e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged End Sub Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton1.CheckedChanged End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.E ventArgs) Handles Button1.Click Dim carrera, nombre, curso, horario, resultado As String carrera = ComboBox1.Text 'guarda los valores de las carreras' nombre = TextBox1.Text 'guara el nombre' If (CheckBox1.Checked) Then curso = "Curso I" End If If (CheckBox2.Checked) Then curso = curso & "Curso II" End If If (CheckBox3.Checked) Then curso = curso & "Curso III" End If If (RadioButton1.Checked) Then horario = "Maana" End If If (RadioButton2.Checked) Then horario = "Tarde" End If If (RadioButton3.Checked) Then horario = "Noche" End If

'& para concatenar del otro formulario' resultado = "Nombre estudiante:" & nombre & vbCrLf & "Carrera:" & carrer a & vbCrLf & "Cursos:" & curso & vbCrLf & "Horario" & horario & vbCrLf Form2.TextBox1.Text = resultado Form2.Show()

End Sub End Class

Anda mungkin juga menyukai