The basic invariants and the general forms of the invariants for a driven harmonic oscillator with time dependent frequency are studied. With the help of the basic invariant, the squeezed states and squeezed number states for this time-dependent system are also constructed.