You give us no hint where you live so we don't know which hornbeam, but assuming American hornbeam, dig first, wait a year (or, better two) than then start styling. They can be tough to dig if they are any size. They grow slowly so if you dig small ones it may be many years before they're bonsaiable.