1.You can store login info into a secret file (Content must be Encrypted).
2. Now when application run first check if the file exist
3. If exist read the content(Decrypt it and read)
4. If the Credential is authentic then Login
1. Go to your project properties and click on settings tab on the left. and create a setting called UserI.
2. Create a form with 2 textboxes and name them txtUserID and txtPassword, and create a checkbox and name it chkSaveUser. A button with name btnLogin
Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
txtPassword.PasswordChar = "*"
If My.Settings.UserID <> Nothing Then
chkSaveUser.Checked = True
txtUserID.Text = My.Settings.UserID
Private Sub btnLogin_Click(sender As System.Object, e As System.EventArgs) Handles btnLogin.Click
'you need to decide how you want to look up the password for the matching user id
Dim pass As String = "your password that matches your username"
If txtPassword.Text = pass Then
If chkSaveUser.Checked = True Then
My.Settings.UserID = txtUserID.Text
My.Settings.UserID = Nothing
Well guys I made this to make a file that can open only with notepad and the file will be Encrypted here the code.
Dim UserFile As String = "C:\Users\PC\Documents\Frenemy2\Userdata\username.user"
Dim PassFile As String = "C:\Users\PC\Documents\Frenemy2\Userdata\password.pass"
Hi. I have a form with list box : lst_product, datagridview : grd_order and button: btn_addline. lst_product has a list of product ids selected from database (MS Acess 2013) , grd_order is by default empty except for 2 headers and btn_addline adds rows to grd_order.
OK, so HostGator for some reason no longer allows gcc/g++ access unless you have a Designated Server account, which is a lot of money to spend just to compile my "Hello World" program. Thus I figured I'd compile at home, then upload. Program is your regular old bare-bones Hello World ...
Hi, as I was told that my code doesn’t scale well at all, I thought perhaps I’d try to get a better understanding of interfaces/abstract classes and classes and the relationship between them.
I don’t want at this stage work on a big separate project as I've already got plenty ...