Hardly had the bell rung when Matthew started running out of his classroom. I guess the construction is correct. If I change this to [2]. Hardly the bell had rung when Matthew started running out of his classroom. [3]. When Matthew started running out of his classroom, the bell had hardly rung. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.