When did Chicago become Illinois capital?

The City of Chicago is not now, and never has been, the capital of the State of Illinois.