单项选择题

Hardly had he entered the classroom()the bell rang.

A. than   
B. then    
C. when    
D. so