In my days as a tutor when I was grading programming assignments, I noticed some students hard coded their user's name and password. When I had my interviews with them about why the login details were hard coded. The response was, "I don't know how".
Well, there is a easy how-to article "Verify a username and password in a database in Visual Basic .NET", thanks to VB Helper!