Hello fionaf,
It does depend on the type of dogwood you have, but most are best pruned when they're dormant, i.e. in the winter. As Kate1123 says, if you have the kind with lovely coloured stems, you're aiming to make the plant produce lots more of them ready for next winter when they're leafless.
Emma
gardenersworld.com team.