 He was elected MP for Northampton in 1659 for the Third Protectorate Parliament.In 1661, Langham was elected Member of Parliament for Northampton in the Cavalier Parliament but the election was declared void on 13 June.Langham was again elected MP for Northampton in February 1662 but the election was also declared void on 26 April 1662.