Windows Form login question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jason Huang

    #1

    Windows Form login question

    Hi,

    In my C# Windows Form project, saying in form frmLogin I have two TextBoxes,
    UserName, Password.
    How do I make the frmLogin remember the current UserName,
    so next time I login to the frmLogin, the UserName textbox has the last time
    login UserName value?
    given that the application is running on Windows XP system.
    Thanks for help.


    Jason


  • family.sens@gmail.com

    #2
    Re: Windows Form login question

    you could store the value in the registry maybe.

    msdn.microsoft. com/library/en-us/dndotnet/html/persistappsettn et.asp

    are you having seperate userids for your program ?

    or using the Currently Logged In User ?

    Comment

    • Jason Huang

      #3
      Re: Windows Form login question

      Thanks!
      If the User is the first time enter into the application, the user has to
      key in the UserName and Password to login.
      After that, the UserName textbox in frmLogin will bring out the last
      UserName value logged in.


      <family.sens@gm ail.com>
      ???????:1140336 753.414952.2538 0@g14g2000cwa.g ooglegroups.com ...[color=blue]
      > you could store the value in the registry maybe.
      >
      > msdn.microsoft. com/library/en-us/dndotnet/html/persistappsettn et.asp
      >
      > are you having seperate userids for your program ?
      >
      > or using the Currently Logged In User ?
      >[/color]


      Comment

      • Otis Mukinfus

        #4
        Re: Windows Form login question

        On Sun, 19 Feb 2006 16:28:51 +0800, "Jason Huang"
        <JasonHuang8888 @hotmail.com> wrote:
        [color=blue]
        >Thanks!
        >If the User is the first time enter into the application, the user has to
        >key in the UserName and Password to login.
        >After that, the UserName textbox in frmLogin will bring out the last
        >UserName value logged in.
        >
        >
        ><family.sens@g mail.com>
        >???????:114033 6753.414952.253 80@g14g2000cwa. googlegroups.co m...[color=green]
        >> you could store the value in the registry maybe.
        >>
        >> msdn.microsoft. com/library/en-us/dndotnet/html/persistappsettn et.asp
        >>
        >> are you having seperate userids for your program ?
        >>
        >> or using the Currently Logged In User ?
        >>[/color]
        >[/color]
        Is this application on the users's machine or a server?

        Storing the last user will work if the app is on a user machine, but
        if it's on a server being accessed by multiple users you'll always get
        the last user who logged in, but it may not be the current user.

        Does that make sense?

        Otis Mukinfus


        Comment

        • Mel

          #5
          Re: Windows Form login question

          Download the example TaskVision from Microsoft, includes source code. It
          has a login form that does exactly what you want.




          "Jason Huang" <JasonHuang8888 @hotmail.com> wrote in message
          news:uL%23NK6RN GHA.1676@TK2MSF TNGP09.phx.gbl. ..[color=blue]
          > Hi,
          >
          > In my C# Windows Form project, saying in form frmLogin I have two
          > TextBoxes,
          > UserName, Password.
          > How do I make the frmLogin remember the current UserName,
          > so next time I login to the frmLogin, the UserName textbox has the last
          > time login UserName value?
          > given that the application is running on Windows XP system.
          > Thanks for help.
          >
          >
          > Jason
          >[/color]


          Comment

          Working...