I am writing a program which takes port no. from a combo box but every time I try to retrieve current value from the combo box I get 0. I tried the following 2 codes: