A. A barking dog seldom bites.
B. He worked instead of played.
C. Riding a horse he went to a distant place.
D. The sun having set, we reached home.
Explanation: RD-152; Preposition (of, in, on, up, for, by, without) ইত্যাদি এর পরে Gerund (v + ing) বসে।