Thread: custom login box

  1. #1
    Musicman - Canora
    Join Date
    Aug 2005

    custom login box

    Hey guys i have a project to complete and im just wondering how i can make a custom login for windows XP so that i can enter my username and password so than it can be authenticated against a server.

    Just wondering what would some initial steps be?


  2. #2
    train spotter
    Join Date
    Aug 2001
    near a computer
    Generally I use the resource editor to add a new Dialog to my app.

    Put two edits, UserName and Password. The edit for the Password has the ES_PASSWORD style so characters appear as asterisks.

    Put a button to Login (set as a Default Button so enter clicks it) and one to Cancel.

    I hide the Login button until I have the minimum required characters in the password.
    I remember the last username (in the registry) and fill it in to the UserName edit.
    I then set the focus to the Password edit so the user can just type their password and hit enter to login.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Virtual Box
    By ssharish2005 in forum Tech Board
    Replies: 3
    Last Post: 02-12-2009, 05:08 AM
  2. Replies: 9
    Last Post: 02-13-2008, 02:59 PM
  3. How to program a "back" button with MFC
    By 99atlantic in forum Windows Programming
    Replies: 3
    Last Post: 04-26-2005, 08:34 PM
  4. New Theme
    By XSquared in forum A Brief History of
    Replies: 160
    Last Post: 04-01-2004, 08:00 PM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM