Professional Documents
Culture Documents
Nav VB 5
Nav VB 5
Nav VB 5
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