Nav VB 5

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

NAVDEEP KAUR 111076208322

PRACTICAL NO:5
AIM:Database connectivity.
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
End Sub
Private Sub Label2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Label2.Click
End Sub
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles TextBox1.TextChanged
End Sub
Private Sub TextBox2_TextChanged(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles TextBox2.TextChanged
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim userid As String=Textbox1.Text.Trim.ToLower()
Dim password As String=textbox2.Text
If userid = "RitikaJaidka" Then
password = "RJ"
End If
Dim objform2 = New Form2
objform2.Show()
Me.Hide()
End Sub
End Class
NAVDEEP KAUR 111076208322

Public Class Form2


Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim objform3 = New Form3
objform3.Show()
Me.Hide()
End Sub
End Class

You might also like