Poll: Did this help you?
You do not have permission to vote in this poll.
Yes
87.10%
27 87.10%
Sort of
0%
0 0%
Not really
0%
0 0%
It's garbage, throw it out.
12.90%
4 12.90%
Total 31 vote(s) 100%
* You voted for this item. [Show Results]

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Remember password & username
#7
Shit, your right, forgive me, here is the full code:

In the sub connect_click()
Code:
Private Sub picConnect_Click()
If RPass.Value = 1 Then
Open "Data.ini" For Output As #f
Print #f, "[SETTINGS]"
Print #f, "Last User= "
Print #f, txtName
Print #f, "Last Password= "
Print #f, txtPassword
Close #f
Else
End If

Then add this into the form_load()

Code:
f = FreeFile

Dim n
Dim O
Dim usr
Dim t
Dim pass
On Error GoTo Error
Open "Data.ini" For Input As #f

Input #f, n
Input #f, O
Input #f, usr
Input #f, t
Input #f, pass
Close #f
RPass.Value = 1
txtName.Text = usr
txtPassword.Text = pass
Error:

Then up at the top, write this in:
Code:
public f as Integer

That works for me.
Is this code good?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)