Sergio
Sergio
Sergio
5101
Programacion
Psp.-sergio perez
Proyecto
Public Class Form1
End Sub
End Class
Public Class Form2
Dim dt As New DataTable
Dim dt2 As New DataTable
Dim dt3 As New DataTable
Dim cn2 As New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\acosta\Proyecto.mdb")
Dim cn3 As New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\acosta\Proyecto.mdb")
P1.Text = (dt.Rows(fila)("Preguntas"))
dataAdapter.Dispose()
a.Text = (dt2.Rows(fila)("Correcta"))
dataAdapter2.Dispose()
b.Text = (dt3.Rows(fila)("Incorrecto"))
dataAdapter3.Dispose()
cn.Close()
End Sub
Me.Hide()
Form3.Show()
End Sub
P2.Text = (dt.Rows(fila)("Preguntas"))
dataAdapter.Dispose()
a.Text = (dt2.Rows(fila)("Correcta"))
dataAdapter2.Dispose()
b.Text = (dt3.Rows(fila)("Incorrecto"))
dataAdapter3.Dispose()
cn.Close()
End Sub
Me.Hide()
Form4.Show()
End Sub
End Class
P3.Text = (dt.Rows(fila)("Preguntas"))
dataAdapter.Dispose()
a.Text = (dt2.Rows(fila)("Correcta"))
dataAdapter2.Dispose()
b.Text = (dt3.Rows(fila)("Incorrecto"))
dataAdapter3.Dispose()
cn.Close()
End Sub
Me.Hide()
Form5.Show()
End Sub
End Class
P4.Text = (dt.Rows(fila)("Preguntas"))
dataAdapter.Dispose()
a.Text = (dt2.Rows(fila)("Correcta"))
dataAdapter2.Dispose()
b.Text = (dt3.Rows(fila)("Incorrecto"))
dataAdapter3.Dispose()
cn.Close()
End Sub
Me.Hide()
Form6.Show()
End Sub
P5.Text = (dt.Rows(fila)("Preguntas"))
dataAdapter.Dispose()
Dim Consultardatos2 As String = "Select* From Preguntas "
Dim dataAdapter2 As New OleDb.OleDbDataAdapter(Consultardatos2, cn)
dataAdapter2.Fill(dt2)
fila = +4
a.Text = (dt2.Rows(fila)("Correcta"))
dataAdapter2.Dispose()
b.Text = (dt3.Rows(fila)("Incorrecto"))
dataAdapter3.Dispose()
cn.Close()
End Sub
Me.Hide()
Form7.Show()
End Sub
End Class
P6.Text = (dt.Rows(fila)("Preguntas"))
dataAdapter.Dispose()
a.Text = (dt2.Rows(fila)("Correcta"))
dataAdapter2.Dispose()
b.Text = (dt3.Rows(fila)("Incorrecto"))
dataAdapter3.Dispose()
cn.Close()
End Sub
Me.Hide()
Form8.Show()
End Sub
End Class
P7.Text = (dt.Rows(fila)("Preguntas"))
dataAdapter.Dispose()
a.Text = (dt2.Rows(fila)("Correcta"))
dataAdapter2.Dispose()
b.Text = (dt3.Rows(fila)("Incorrecto"))
dataAdapter3.Dispose()
cn.Close()
End Sub
Me.Hide()
Form9.Show()
End Sub
P8.Text = (dt.Rows(fila)("Preguntas"))
dataAdapter.Dispose()
a.Text = (dt2.Rows(fila)("Correcta"))
dataAdapter2.Dispose()
b.Text = (dt3.Rows(fila)("Incorrecto"))
dataAdapter3.Dispose()
cn.Close()
End Sub
Private Sub a_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
a.CheckedChanged
If a.Checked = True Then
MsgBox("TU MUY MUY BN!")
b.Enabled = False
End If
Me.Hide()
Form10.Show()
End Sub
Me.Hide()
Form10.Show()
End Sub
End Class
P9.Text = (dt.Rows(fila)("Preguntas"))
dataAdapter.Dispose()
a.Text = (dt2.Rows(fila)("Correcta"))
dataAdapter2.Dispose()
b.Text = (dt3.Rows(fila)("Incorrecto"))
dataAdapter3.Dispose()
cn.Close()
End Sub
Me.Hide()
Form11.Show()
End Sub
End Class
P10.Text = (dt.Rows(fila)("Preguntas"))
dataAdapter.Dispose()
a.Text = (dt2.Rows(fila)("Correcta"))
dataAdapter2.Dispose()
b.Text = (dt3.Rows(fila)("Incorrecto"))
dataAdapter3.Dispose()
cn.Close()
End Sub
Me.Hide()
Form12.Show()
End Sub
End Class
P11.Text = (dt.Rows(fila)("Preguntas"))
dataAdapter.Dispose()
a.Text = (dt2.Rows(fila)("Correcta"))
dataAdapter2.Dispose()
b.Text = (dt3.Rows(fila)("Incorrecto"))
dataAdapter3.Dispose()
cn.Close()
End Sub
Me.Hide()
Form13.Show()
End Sub
P12.Text = (dt.Rows(fila)("Preguntas"))
dataAdapter.Dispose()
a.Text = (dt2.Rows(fila)("Correcta"))
dataAdapter2.Dispose()
b.Text = (dt3.Rows(fila)("Incorrecto"))
dataAdapter3.Dispose()
cn.Close()
End Sub
Me.Hide()
Form14.Show()
End Sub
P13.Text = (dt.Rows(fila)("Preguntas"))
dataAdapter.Dispose()
a.Text = (dt2.Rows(fila)("Correcta"))
dataAdapter2.Dispose()
b.Text = (dt3.Rows(fila)("Incorrecto"))
dataAdapter3.Dispose()
cn.Close()
End Sub
Me.Hide()
Form15.Show()
End Sub
P14.Text = (dt.Rows(fila)("Preguntas"))
dataAdapter.Dispose()
Dim Consultardatos2 As String = "Select* From Preguntas "
Dim dataAdapter2 As New OleDb.OleDbDataAdapter(Consultardatos2, cn)
dataAdapter2.Fill(dt2)
fila = +13
a.Text = (dt2.Rows(fila)("Correcta"))
dataAdapter2.Dispose()
b.Text = (dt3.Rows(fila)("Incorrecto"))
dataAdapter3.Dispose()
cn.Close()
End Sub
Me.Hide()
Form16.Show()
End Sub
End Class
P15.Text = (dt.Rows(fila)("Preguntas"))
dataAdapter.Dispose()
a.Text = (dt2.Rows(fila)("Correcta"))
dataAdapter2.Dispose()
Dim Consultardatos3 As String = "Select* From Preguntas "
Dim dataAdapter3 As New OleDb.OleDbDataAdapter(Consultardatos3, cn)
dataAdapter3.Fill(dt3)
fila = +14
b.Text = (dt3.Rows(fila)("Incorrecto"))
dataAdapter3.Dispose()
cn.Close()
End Sub
Me.Hide()
Form17.Show()
End Sub
End Class
P16.Text = (dt.Rows(fila)("Preguntas"))
dataAdapter.Dispose()
a.Text = (dt2.Rows(fila)("Correcta"))
dataAdapter2.Dispose()
dataAdapter3.Dispose()
cn.Close()
End Sub
Me.Hide()
Form18.Show()
End Sub
End Class
P17.Text = (dt.Rows(fila)("Preguntas"))
dataAdapter.Dispose()
a.Text = (dt2.Rows(fila)("Correcta"))
dataAdapter2.Dispose()
b.Text = (dt3.Rows(fila)("Incorrecto"))
dataAdapter3.Dispose()
cn.Close()
End Sub
Me.Hide()
Form19.Show()
End Sub
End Class
P18.Text = (dt.Rows(fila)("Preguntas"))
dataAdapter.Dispose()
a.Text = (dt2.Rows(fila)("Correcta"))
dataAdapter2.Dispose()
b.Text = (dt3.Rows(fila)("Incorrecto"))
dataAdapter3.Dispose()
cn.Close()
End Sub
Me.Hide()
Form20.Show()
End Sub
End Class
P19.Text = (dt.Rows(fila)("Preguntas"))
dataAdapter.Dispose()
a.Text = (dt2.Rows(fila)("Correcta"))
dataAdapter2.Dispose()
b.Text = (dt3.Rows(fila)("Incorrecto"))
dataAdapter3.Dispose()
cn.Close()
End Sub
End Sub
End Sub
End Class