After service in the RAF from 1942 to 1947 , he entered into practice as a solicitor but soon joined the legal branch of the Colonial Service , in which he served from 1949 to 1966 , when the Colonial Office and Commonwealth Office merged to form the Commonwealth Relations Office ( CRO ) .