 During the Second World War he served in the Scots Guards although he continued his legal studies, and called to the Bar in Northern Ireland in 1942.He fought the Belfast West by-election in 1943 and the same seat in the 1945 general election.After the war Cunningham mainly lived in Orpington, although he retained membership of the Ulster Unionist Council.