 Langham was elected as a Republican to the Sixty-first, Sixty-Second, and Sixty-third Congresses.He was not a candidate for renomination in 1914.In 1915 he was elected judge of the court of common pleas for the fortieth judicial district of Pennsylvania for a term of ten years, reelected in 1925 and served until his retirement in January 1936.