Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. VB.Net/VS.Net Password Login

VB.Net/VS.Net Password Login

Scheduled Pinned Locked Moved Visual Basic
csharpdatabasevisual-studiohelp
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Desi Bravo
    wrote on last edited by
    #1

    I created a password login following the address book application. The log in works great. The application is accessed through MS Access database. The following is the code to the password that is generated through the load page of the log in application. Dim UserName, Password As String If txtUserName.Text = "username" And txtPassword.Text = "password" Then MsgBox("Welcome, Username") txtUserName.Text = "" txtPassword.Text = "" ElseIf MsgBox("Sorry, your username or password entry is Invalid!")Then txtUsername.Text = "" txtPassword.Text = "" MsgBox("Try Again") txtUserName.Focus() Return txtUserName.Text = "username" And txtPassword.Text = "password") txtUserName.Focus() End If What I am looking for is a code that will allow the user change the password periodically. I have no idea how to generate a "change password" method. Can someone help in this area. The above log in code works good, is just that I like to add code to change the password.;) bravo659

    D 1 Reply Last reply
    0
    • D Desi Bravo

      I created a password login following the address book application. The log in works great. The application is accessed through MS Access database. The following is the code to the password that is generated through the load page of the log in application. Dim UserName, Password As String If txtUserName.Text = "username" And txtPassword.Text = "password" Then MsgBox("Welcome, Username") txtUserName.Text = "" txtPassword.Text = "" ElseIf MsgBox("Sorry, your username or password entry is Invalid!")Then txtUsername.Text = "" txtPassword.Text = "" MsgBox("Try Again") txtUserName.Focus() Return txtUserName.Text = "username" And txtPassword.Text = "password") txtUserName.Focus() End If What I am looking for is a code that will allow the user change the password periodically. I have no idea how to generate a "change password" method. Can someone help in this area. The above log in code works good, is just that I like to add code to change the password.;) bravo659

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Actually, with the code you have alreayd, you won't be able to change the username and password because it's hard-coded. You have to store the username and password in a table somewhere. Then you'll be able to code a method to change that username and password. Like you have it coded now, consider it impossible to change... RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      D 1 Reply Last reply
      0
      • D Dave Kreskowiak

        Actually, with the code you have alreayd, you won't be able to change the username and password because it's hard-coded. You have to store the username and password in a table somewhere. Then you'll be able to code a method to change that username and password. Like you have it coded now, consider it impossible to change... RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        D Offline
        D Offline
        Desi Bravo
        wrote on last edited by
        #3

        Thanks for your reply. Then I need to change the entire code to a connection in a database table in order to have the changes made, right? The only database I currently have is the Access database. Through that connection is how I need to create the table? bravo659

        D 1 Reply Last reply
        0
        • D Desi Bravo

          Thanks for your reply. Then I need to change the entire code to a connection in a database table in order to have the changes made, right? The only database I currently have is the Access database. Through that connection is how I need to create the table? bravo659

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          It can be created just like any other table in Access. Open the .MDB file your using by double-clicking on it. In Access, click on the "Tables" label, then click design. Add your username and password fields... ...hmmm...Have you used Access before? Any previous programming experience? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          D 1 Reply Last reply
          0
          • D Dave Kreskowiak

            It can be created just like any other table in Access. Open the .MDB file your using by double-clicking on it. In Access, click on the "Tables" label, then click design. Add your username and password fields... ...hmmm...Have you used Access before? Any previous programming experience? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

            D Offline
            D Offline
            Desi Bravo
            wrote on last edited by
            #5

            Yes, I do have Access programming experience and I also use the design view and the primary key. bravo659

            D 1 Reply Last reply
            0
            • D Desi Bravo

              Yes, I do have Access programming experience and I also use the design view and the primary key. bravo659

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              Then you have everything you need to create the table using Access. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

              A 1 Reply Last reply
              0
              • D Dave Kreskowiak

                Then you have everything you need to create the table using Access. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

                A Offline
                A Offline
                Anonymous
                wrote on last edited by
                #7

                Thanks for your reply to my inquiries. It is helpful. All I ahve to do is shift the coding around until I get the correct code. Thanks Again!

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups