Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim id As String Dim pass As String
id = TextBox1.Text pass = TextBox2.Text
If id = "anderson" And pass = "123456" Then Form2.Show() If id = "anderson" And pass = "123" Then MsgBox("Contraseña incorrecta") If id = "jesus" And pass = "123456" Then MsgBox("Usuario incorrecto")End Sub
Public Class Form2
Private Sub InformacionToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles InformacionToolStripMenuItem.Click
End Sub
Private Sub InformacionDeNotasToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles InformacionDeNotasToolStripMenuItem.Click System.Diagnostics.Process.Start("http://www.uniojeda.edu.ve/horarios.php") End Sub
Private Sub NoticiasToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NoticiasToolStripMenuItem.Click System.Diagnostics.Process.Start("http://www.uniojeda.edu.ve/noticias.php") End Sub
Private Sub InstalacionesToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles InstalacionesToolStripMenuItem.Click System.Diagnostics.Process.Start("http://www.uniojeda.edu.ve/instalaciones.php") End Sub
Private Sub BibliotecaToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BibliotecaToolStripMenuItem.Click System.Diagnostics.Process.Start("http://www.uniojeda.edu.ve/Biblioteca.php") End Sub
Private Sub InformacionToolStripMenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles InformacionToolStripMenuItem1.Click System.Diagnostics.Process.Start("http://www.uniojeda.edu.ve/contacto.php") End Sub
Private Sub SitioWebToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SitioWebToolStripMenuItem.Click System.Diagnostics.Process.Start("http://www.uniojeda.edu.ve/") End Sub
Private Sub VolverAlInicioToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles VolverAlInicioToolStripMenuItem.Click Me.Hide() Form1.Show() End Sub
Private Sub CerrarToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CerrarToolStripMenuItem.Click End End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Form4.Show()
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Form6.Show() End SubEnd Class
Public Class Form4
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Timer1.Start()
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick ProgressBar1.Increment(1) If ProgressBar1.Value = 100 Then Form5.Show()
Label1.Text = ProgressBar1.Value & (" % ")
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Timer1.Stop() ProgressBar1.Value = 0 Label1.Text = "0%" End SubEnd Class