Answer:
He was determined as Chancellor by the President after his party, the NSDAP, won the elections (thats how its done iin weimae republic). after the Reichstag was set on fire, he claimed national emergency, abrogating the basic rights and giving him additional powers. details on wikipedia.