... Where would you use that int selection? Put the example piece of code there and replace cmb with the pointer to your combo box.