Click Start, click Run, and type control userpasswords2. This is a shortcut instead of having to click on Start -> Control Panel -> User Accounts.
Uncheck the "Users must enter a username and password to use this computer" check box.
Enter the user name and password you wish to automatically log on with, and then click OK.
Click OK again and you're all done.