well, here's my code to read from an ini...
Code:
Dim userpass As New System.IO.StreamReader(Application.StartupPath & "\config.ini")
Dim line1, line2, line3 As String
line1 = userpass.ReadLine()
line2 = userpass.ReadLine()
line3 = userpass.ReadLine()
userpass.Close()
line2 = line2.Substring(10)
line3 = line3.Substring(9)
If line2 = TextBox1.Text And line3 = TextBox2.Text Then
Process.Start("explorer.exe")
closestate = 2
Timer2.Enabled = True
Timer5.Enabled = False
Form2.Text = "Unlocking..."
Form2.Label1.Text = "Unlocking your computer..."
Form2.Show()
Else
Label3.Visible = True
If line2 <> TextBox1.Text Then
Label3.Text = " Incorrect Username"
Else
If line3 <> TextBox2.Text Then
Label3.Text = " Incorrect Password"
End If
End If
End If
Ps, its from windows logger pro...