

What happens now: //On buttonLogin click event: So, now he enters his data (username and password) and adds tick in the checkBox).
Remember me program how to#
READ carefully my 1st post, there is explained all - of how to create a new column (type of bit), and how the bit to 1 when user adds a tick (when bit set to 1, that means when you will read username and password, the password will be shown automatically).Ĭolumns: Id(int), UserName(varchar,50), Password(varchar,50), ShowPassword(bit) (and maybe some more, but these are obligatory)īy default "ShowPasswrd" column is set to 0 (when 0 means no password shown)įor the 1st time, when user logs in, there is no chance of automatically showing the password, because this time its the 1st time when the user can add a tick, which will mean that when he will try to login next times, the auto-login will be available.

I already explanined you in my 1st post, there I was telling you how to save both username and password. I wanted to remeber the useranme and the password both There is some other way instead of constantly checking dataBase, before user starts entering lettes, go to dataBase, get all userNames and passwords out into DataTable!!! (fill it will sqlDataAdapter), and then you only have to compare the inserted username with the column in the DataTable (no DataBasE).įor the rest of the info, please refer to my 1st post in this thread!! its all there. Remember jusr one thing: this will work, if your userName column in the dataBase will be UNIQUE!!! It must be, there must be NO duplications. If it will be found, on the Enter key press or TAB password will appear in the password textBox, and tick will be added to checkBox (and login will be available).
Remember me program code#
So in the TextChnaged event (when user will write his username letter by letter), your code will constantly look for the match. You said you want to remember his password. But how does the application knows which user wants to login
