This minuet in C minor (binary form) offers an excellent example of modulation.
The first modulation is to the relative major key of E-flat major at the end of section A, where the second degree of C minor (the seventh degree in E-flat major) is used as a pivot chord (measure 6). Although diminished seventh chords have a dominant function, the same chord is used in place of the E-flat dominant. You could also argue that there is a dominant chord in the last beat of the measure (E-flat in the bass and B-flat in the treble part).
Section B starts in E-flat major. A new modulation to F minor in measure 13 does not use a pivot chord. The Eb dominant in measure 12 is followed by the vii degree of F minor in measure 13.
From measures 17 to 23, a sequence takes us from F minor to Eb major (the F minor chord is used as the ii degree in Eb major), before returning to C minor in measure 21.