How can I change the number of voices with a ComboBox?

Hey everyone,
right now I have a synth with a single oscillator and a single voice but I want to change the voices using a ComboBox but I don’t understand how to do it. Can anybody help me?