Rama
Rama
StudentID;-S0600b0200072
Batch Code;- B080132
RegNo;-R0600B0200074
Faculty;-AnirudhPaul
Dim ctr As Integer
Dim thr As Thread
Dim ColorArray(5) As Color
Dim cnt As Integer
Sub ForThread()
While True
Label3.ForeColor = ColorArray(cnt)
Label1.ForeColor = ColorArray(cnt)
Label2.ForeColor = ColorArray(cnt)
Button1.ForeColor = ColorArray(cnt)
cnt = cnt + 1
If cnt = 6 Then
cnt = 0
End If
Thread.Sleep(500)
End While
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
If TextBox1.Text = "" Then
MsgBox("plz provide the things")
TextBox1.Focus()
Else
Dim LogName As String, Password As String
LogName = TextBox1.Text
Password = TextBox2.Text
ctr = ctr + 1
If LogName = "admin" And Password = "password" Then
Dim obj As New Form13()
obj.Show()
Me.Hide()
Else
If ctr < 3 Then
MsgBox("Incorrect Login & Password...... Are you
the Administrator?")
TextBox2.Text = ""
Else
MsgBox("unauthorised Access. Aborting.....")
Close()
End If
End If
End If
End Sub
Dim n As Integer
Dim n1 As Integer
Dim n2 As Integer
Dim stmt As String
Dim cnt As String
Private Sub Form15_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
OleDbDataAdapter1.Fill(DataSet211)
End Sub