Implementing A 'Remember Me' And 'Keep Me Logged In?
Jan 5, 2011
On Form1 I have two textboxes (Username, Password), two checkboxes (Remember me, Keep me logged in) and a 'Login' button. I am using a MySQL database. Here is my code (w/out my database info, of course):
MySQLConnection = New MySqlConnection
MySQLConnection.ConnectionString = "server=REMOVED;Port=3306; user id=REMOVED; password=REMOVED; database=REMOVED"
MySQLConnection.Open()
[Code]...
View 2 Replies
ADVERTISEMENT
Aug 10, 2010
Is it possible to automatically insert a Code Snippet when an interface is implemented? If so, how do you do it? I am looking for something similar to when you implement IDispoable in VB.[code]This will be used by web forms when transfering parameters from one page to the next using Server.Transfer
View 1 Replies
May 4, 2009
I'm using RichTextFormat, and i'm using cf to change the color of strings. I have this
Code:
cf22dgreengiant
Its actually like this though
Code:
cf2 2dgreengiant
But the parser thinks that the 2 in his name is part of cf. There's a character, in many different formats (usually ) that will fix it, but I can't remember what those characters are called so I can't look it up. It would be like this, assuming ! was the character. This would make it parse correctly
Code:
cf2!2dgreengiant
So what is that character called? Sorry for the dumb question, but I can't for the life of me remember.
View 2 Replies
Mar 15, 2009
How can i get my program to remember settings?I have made it so that they click on a register button, if they enter the correct registration code, it will unlock these features. How can i make it so it remembers that the key has been inserted, so when the user next uses the program, they dont have to re enter the key. I think it has something to do with ini files, but im not sure how i can implement it.Here is the
Private Sub Register_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Register.Click
If UserID.Text * (KeyID.Text / 2654) > "2234047144494" And UserID.Text * (KeyID.Text / 994) < "213725721516" Then
MsgBox("The User ID and Key are Correct! Registration is now complete. You now have full access to EVERY feature.
Base.CalenderToolStripMenuItem.Enabled = True
Base.ShowTrackBarToolStripMenuItem.Enabled = True
Base.HideTrackBarToolStripMenuItem.Enabled = True[code].....
View 4 Replies
Jun 1, 2010
So heres the change backround code
Dim Fd As New OpenFileDialog
Fd.Filter = "Image Format(*.bmp;*.png;*.jpg)|*.bmp;*.png;*.jpg"
Fd.Title = "Add Background Image"
[Code]....
now what could i add to that to make it save the backround change?
View 4 Replies
Dec 22, 2011
so here is what I have. I built a program for myself, it runs great so far. I have it all set up so it remembers what ListView items I put in and all that. But Now I want the picture box to save an image location into a text file then read the text file when it starts up then load the image from that file. I tried adapting the same code that I used for the ListView items but I just don't know enough yet to do that very successfully.
View 4 Replies
Nov 26, 2011
For a project at school, we have to write an application with a database.I'm going to make a mini-casino where people can deposit money on their accounts, where they can lose or win money.Since I'm a beginning programmer, I'm kinda stuck. I want to write the lucky seven game with classes. It's easier to do it in a form directly, but we have to do this with a class.
I want to keep track of the users account (this is a class as well). So each time you press the button,you pay 1$ or . If you win, you get the prizes on the central account. So when you quit the game and play another, you play with the updated saldo. i'm not busy with the database, but the label won't change. It gets stuck at -1. When you win, the label gets updated but every time I lose, nothing happens.
[Code]...
View 1 Replies
Jul 22, 2009
I'm trying to get my datagridview control to remember the selected row after data refresh.The DGV is databound to a list of business objects:
Dim FXs As SortableBindingList(Of FX) = FX.LoadAllForBinding(FXStatus)
Dim bs As New BindingSource
bs.DataSource = FXs
[code].....
View 1 Replies
Mar 6, 2012
i have two pages.1.aspx and 2.aspx i have a drop down list on the first page and a back and sumbit button on the second page..If i make a selection in the drop down list and go the second page and then go the the first page again with the back button. the drop down list doesnt show the selection that i did.i tried the use "sessions" but didnt work, also tried postback but no luck. I read something about "Enableviewstate" also no luck.[code]
View 2 Replies
Aug 29, 2009
How do i get my visual basic browser to remember my username on a webpage , so when i access that site my username will be saved ?
View 2 Replies
Jan 12, 2010
I like to put my Code windows on my 2nd monitor. But after I close them they always reappear as tabs on my primary monitor. How can I get VB2010 to remember to put them on the secondary monitor instead?
View 1 Replies
Mar 26, 2012
How do you make a program remember settings. For example, first it prompts you for your name, then when you close out of it and start it again, it will display your name?
View 8 Replies
Jul 17, 2009
If I need to highlight a few lines in ListBox and save to a file. After re-openning this file, which is the easiest way to remember which lines highlighted?
View 5 Replies
May 9, 2011
I have set up a simple quiz where you drop answers to the correct question. I have implemented a system where the are 18 text boxes (9 for questions, 9 for answers) and it can be customised but I want the questions to be able to be 'saved's since it in another form the if I give them special names when I close the form and open it again it has lost the values. Is there a way to remember the variables for a set period of time (cookies?) or if not just for that session?
View 2 Replies
Nov 16, 2009
I created a app that is multithread with threadloop and reads a large text file. The problem is if the app is closed while it is still running and open again the app will start from the beginning of the file. How can I have the app remember its previous location/position?
View 1 Replies
Jul 18, 2009
Using VB express 2008 here. I am just wondering about the best way to store certain values like the last browsed folder even if a user closes the app and starts it again. I dont want to go the route of making a text file in the installation directory and storing the values there. Seems clunky.
View 2 Replies
May 29, 2012
well my project is to do a BD with search and a popup or text box as remember cause i have "date" as field ... well i have done with success the DB and the search field but i dont know how to do th "remember + popup/textbox"
View 9 Replies
Oct 29, 2009
getting my app to remember the login username and password , heres my code
Public Class login
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
[Code].....
View 19 Replies
Aug 10, 2009
I need to show a drop down list when the page loads, the default selected value is nothing, or an empty element (such as "-"). When the user selects one value from the list, another drop down list is added below the first one, and so on.My problem with this is how you make the page to remember the drop down lists created through postbacks and the values they have selected?
EDIT: I did this example for dynamically add drop down lists and suscribe them to an event handler but the event won't fire.
EDIT 2: Changed the code because I labelled for VB.Net and posted something in C#. I update the code with some trivial improvements, but still won't fire the event :(
Private myDdlArray As New List(Of DropDownList)
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If (Session("ddl") Is Nothing) Then
[code]....
View 4 Replies
Nov 15, 2010
I have a read only DGV on a tab of my application. I let the users sort by column and reorder columns and select a row. In another part of the application you can edit the data that is in this dgv so when I go back to the tab with the dgv I'd like to refresh the data but keep the user's settings such as column order, sort order, and row selection. Right now I'm just setting the dgv to the new list of items and it resets all of these settings. Is there anyway to persist these after I rebind the data?
View 1 Replies
Mar 9, 2012
I have a asp.net website. The asp.net website connects to a wcf service. The wcf service is using a sts(security token service) with custom username/password authentication. The asp.net page has a simple username and password login form. Now I'd like to implement a "remember me" function. At the moment I have two solutions: Saving the entered user and password on the asp.net server and set a cookie with an ID. Saving the STS token on the asp.net server and renew it if needed. What is the more secure solution? Do you have any other ideas?
View 1 Replies
Sep 24, 2009
I have a "Remember Me" check box that will remember the user's username and/or password if he/she chooses to. When the check box is checked a message box appears saying that it will remember their password. When I save the "Remember Me" check box state as checked the form loads the check box as checked which makes the message box appear on form load. Is there anyway that I can prevent it from doing that? I'm using "My.Settings".
View 2 Replies
Jan 26, 2011
this is me again.. a newbie to VB.NET..how to create Remember me Chechkbox in Desktop application with VB.NET.
so the case is, i have a login form, and my customer said that she will sell the application to people who doesnt good enough to memorize username and password, so she ask me to put remember me function to the login form...
View 10 Replies
Jul 2, 2008
I have 3 splitcontainers on my form. Each splitcontainer has vertical splitter orientation
This forms 3 'panels' which are resizable by dragging their respective splitters.
Each vertical 'panel' is then split horizontally by adding another splitcontainer with horizontal splitter orientation. I now have 3 column 'panels' each of which is split into 2 'rows'
My question is :
In a nested splitcontainer scenario
When a user drags splitters and resizes panels,
how can I remember the last splitter location
so that when the form is closed and reopened,
it remembers the last used positions ?
View 13 Replies
Oct 6, 2010
So I am working on a project for class. I first hit a bump when I could not figure out how to get this to count the number of times the button was clicked. Now I have hit a road block. Here is what I have so far (I stopped where I couldn't get it to work):[code]How can I get this to remember variables which were completely dependent upon the count?The project is asking for 5 prices entered 1 at a time, clicking the button ("Include Price"). After each number is enter, I am supposed to be getting the largest, lowest, and average of the numbers.
View 14 Replies
Sep 14, 2011
can anyone tell me how to make my program "remeber" checked Radio button.
View 1 Replies
Jul 28, 2011
i have a combo box without a list of item now i want to do is when a user input a number or text in combo box the text value of the combo box will be saved and when the user input the same number the combo box will not save the same text value. and when the user logout and login back again i want to load the list of item that he or she inputted earlier in the combo box.
View 7 Replies
Aug 12, 2009
Is it possible for me to make a VB program I make remember a destination?
1. User opens program
2. User presses "Launch" (OpenFileDialog)
3. User selects exe
4. Next time user presses "Launch" the same EXE as before is launched
Is there any way to do that?
View 34 Replies
Feb 16, 2011
I have it all setup to refresh the treeview and it works fine, but for some reason I can't get it to remember the last selected node the user was on
Private Sub Timer2_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer2.Tick
Dim curNode As TreeNode = tvFolders.SelectedNode
[Code].....
View 8 Replies
Feb 10, 2011
I used to do a lot of programming in GW-Basic and QuickBasic (ah, the good ol' days), but I'm a total newbie at VB2010. I'm trying my first programming sessions and using forums and ebooks to learn. There is one thing that puzzles me and I just can't figure it out.Private Sub btnOK_ Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOK.Click..When I click btnOK, certain codes are activated and Sub 2 is being called.Sub 2 calls Sub 3 and Sub 3 calls Sub 4.When Sub 4 is done, I want it to call the first form again, with the mentioned 'OK' button and have it wait for the button to be clicked again.My problem is, when Sub 4 calls the starting form with the 'OK' button, the program seems to "remember" that btnOK has been clicked and proceeds to run the code that follows. It does not wait for the button to be clicked again. I can't find out how to tell the program that the button has not been clicked on. What should I do? Is there a way to "reset" this button, so it doesn't remember it has been clicked on before? Or is Call in this case the wrong method to go from Sub to Sub and to the Form again and should I find another way to go through the program?
View 6 Replies