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. Logon screen

Logon screen

Scheduled Pinned Locked Moved C#
question
4 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.
  • B Offline
    B Offline
    bthumber
    wrote on last edited by
    #1

    I would like to create a logon page, but I didn't want the names store in a COTs datebase. Can I create a file store the names in it, then compare want is in the file to to want the user types in the textboxes?

    N 1 Reply Last reply
    0
    • B bthumber

      I would like to create a logon page, but I didn't want the names store in a COTs datebase. Can I create a file store the names in it, then compare want is in the file to to want the user types in the textboxes?

      N Offline
      N Offline
      Nick Parker
      wrote on last edited by
      #2

      bthumber wrote: Can I create a file store the names in it, then compare want is in the file to to want the user types in the textboxes? Yes, if you have a specific question in terms of C# feel free to post it. - Nick Parker
      My Blog | My Articles

      B 1 Reply Last reply
      0
      • N Nick Parker

        bthumber wrote: Can I create a file store the names in it, then compare want is in the file to to want the user types in the textboxes? Yes, if you have a specific question in terms of C# feel free to post it. - Nick Parker
        My Blog | My Articles

        B Offline
        B Offline
        bthumber
        wrote on last edited by
        #3

        The next question is how do you compare those two strings?

        N 1 Reply Last reply
        0
        • B bthumber

          The next question is how do you compare those two strings?

          N Offline
          N Offline
          Nick Parker
          wrote on last edited by
          #4

          bthumber wrote: The next question is how do you compare those two strings? Read about the String.Compare[^] method.

          string s = "Nick";
          string t = "Parker";
          if(string.Compare(s, t) == 0)
          		Console.WriteLine("Equal");
          else
          		Console.WriteLine("Not equal");
          

          - Nick Parker
          My Blog | My Articles

          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