How i can make it resolution settings?

hi i need help with this: i made a main menu and you will see in image that i uploaded that i am in the options menu to set resolution from combobox if i select one of these how i can make it setting the resolution? help and thanks

Like this

You need to check what Option was selected of course first. Good Luck =)