Combo Box Checking

I am trying to make a combo box so that when i click a button it check if it is empty or not and if it is empty it show a message and I tried a few things like .getselectindex and other one similar to that anyone have any idea what it is
thank any help would be nice.