Transform "The bell had hardly stopped when the lights dimmed" by fronting hardly. Replace [The bell had hardly stopped] to complete: "Hardly ___ when the lights dimmed."
الإجابة الصحيحة
had the bell stopped
الشرح
Fronting hardly requires had to precede the subject, and the standard following connector remains when. Using than would cross this pattern with the separate no-sooner construction.