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. Password Form

Password Form

Scheduled Pinned Locked Moved C#
questioncsharphelp
2 Posts 2 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

    Can any body help me? I have create window form using C#.There are two item that is textbox for user key in password and OK button to link new form. What is the code to take user input in the text box. What is the code to veryfied user input is correct with the real password. If correct link to another form and aotomaticlly close this form.If wrong automaticlly close this form. TQ.....

    C 1 Reply Last reply
    0
    • K krajah10

      Can any body help me? I have create window form using C#.There are two item that is textbox for user key in password and OK button to link new form. What is the code to take user input in the text box. What is the code to veryfied user input is correct with the real password. If correct link to another form and aotomaticlly close this form.If wrong automaticlly close this form. TQ.....

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      No-oe can tell you, because we don't know where the password comes from. The best asumption is a database, in which case, a proc that returns true or false for a username/password pair is the best bet.

      krajah1984 wrote:

      If correct link to another form and aotomaticlly close this form.If wrong automaticlly close this form.

      Close(); will close a form. Is this form the main form of the app ? You could have issues here, also.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      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