Requirements
You work in a secure facility, and the security guard at the front desk wants a program to track people entering the building. For now, people exiting the building will be ignored (assume somebody else will implement that).
The security guard has given you his vision for the program as follows: When the program first starts up, the guard should be given a login screen. He must enter in his login name (namely rdelaney
) and password (mypass
), then click OK. Upon doing this, another window should pop up, and within that window (think MDI forms) are two more windows. The first window would be a direct interface to an Access 2.0 database (you'll want to use the Data control). This interface would log each time a person enters the building, and keep track of that person's first name, last name, Social Security Number, and age, and the date/time they entered the building. The guard will have to enter all of this information manually.
The main program screen
The second window should, for the guard's amusement, display a circle that expands to a certain radius, then returns to a point, only to expand again.
Details
You should store the guard's login name and password in a file and read the data in from the file, rather than hard-coding the login name and password into the program.
You can make the "password" TextBox display *'s instead of the actual characters by setting that control's PasswordChar property to "*
".
The database window should use the Data control, and should add each record directly into the database.
I suggest that you don't implement the login screen until you get the rest of the program working; it will save you a lot of time having to "log in" every time you want to debug.
Extra Improvements: