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
  1. Home
  2. General Programming
  3. C#
  4. Read password from text file and compare with user textbox input

Read password from text file and compare with user textbox input

Scheduled Pinned Locked Moved C#
databasehelptutorial
6 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.
  • K Offline
    K Offline
    krajah10
    wrote on last edited by
    #1

    How to compare the password we have keyin in (notepad/simple database) with user keyin in the textbox in window form. Another form that have two textbox: One for user key in old password Another for user key in new password If user klick button it will change the password in the notepad to new password that user key in second text box. Need help here.....

    B 1 Reply Last reply
    0
    • K krajah10

      How to compare the password we have keyin in (notepad/simple database) with user keyin in the textbox in window form. Another form that have two textbox: One for user key in old password Another for user key in new password If user klick button it will change the password in the notepad to new password that user key in second text box. Need help here.....

      B Offline
      B Offline
      Balaji Prabu AL
      wrote on last edited by
      #2

      Hi, You can consider the password as a normal text. Means you can compare the passwords typed in two textbox as same as how you use to check plain text typed in two textbox. if (textBox1.Text == textBox2.Text) { MessageBox.Show("hello"); } Thanks and Regards Balaji

      K A 2 Replies Last reply
      0
      • B Balaji Prabu AL

        Hi, You can consider the password as a normal text. Means you can compare the passwords typed in two textbox as same as how you use to check plain text typed in two textbox. if (textBox1.Text == textBox2.Text) { MessageBox.Show("hello"); } Thanks and Regards Balaji

        K Offline
        K Offline
        krajah10
        wrote on last edited by
        #3

        Question 1:(form1) How to compare my default password that i save in notepad. How to compare with the password that user input in text box.How to call the password that have key in the notepad. Question 2: In another form I make to textbox one for user input old password and another textbox for user input new password.The new old password will be replace by the new password in the notepad.After this it will compare with the new password in the form1

        B 1 Reply Last reply
        0
        • K krajah10

          Question 1:(form1) How to compare my default password that i save in notepad. How to compare with the password that user input in text box.How to call the password that have key in the notepad. Question 2: In another form I make to textbox one for user input old password and another textbox for user input new password.The new old password will be replace by the new password in the notepad.After this it will compare with the new password in the form1

          B Offline
          B Offline
          Balaji Prabu AL
          wrote on last edited by
          #4

          Can you tell me what all will be in your notepad. Will it contain only the password ?

          K 1 Reply Last reply
          0
          • B Balaji Prabu AL

            Can you tell me what all will be in your notepad. Will it contain only the password ?

            K Offline
            K Offline
            krajah10
            wrote on last edited by
            #5

            Yes only password.

            1 Reply Last reply
            0
            • B Balaji Prabu AL

              Hi, You can consider the password as a normal text. Means you can compare the passwords typed in two textbox as same as how you use to check plain text typed in two textbox. if (textBox1.Text == textBox2.Text) { MessageBox.Show("hello"); } Thanks and Regards Balaji

              A Offline
              A Offline
              ak20
              wrote on last edited by
              #6

              it doesnt work like this.. =| is there any other way?

              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