1. If i wanted my program to calculate the period difference between two dates, how can i derive the code from what they have provided in the bottom boxxed up field?

    thanks.

  2. what does this statement mean?

    Call SaveSetting("Name Of Your Program", "Login", "Username", txtUsername.Text)

    if you're just saving the settings of the username (txtUsername.Text), why would you need the first part, i.e. [Name Of Your Program", "Login", "Username"]

  3. Private Sub Form_Load()
    chkSave.Value = GetSetting("Name Of Your Program", "Login", "Save Login Information", Checked)

    If chkSave.Value = Checked Then
    txtUsername.Text = GetSetting("Name Of Your Program", "Login", "Username")
    txtPassword.Text = GetSetting("Name Of Your Program", " Login", "Password")
    End If
    End Sub

    why do you need the line in red? Why not when the form loads, just check whether the chkSave.Value is checked, and work from there on?