 In 1920, by the Treaty of Trianon, the south-west of the county became part of the newly formed Kingdom of Serbs, Croats and Slovenes (from 1929 as Yugoslavia).The remainder stayed in Hungary.Yugoslavian part of it was occupied and annexed again by Hungary between 1941 and 1945 during World War II.