How can i get value in combobox with function :     public string year( ComboBox cbYears)
        {
            string value = null;
            value= cbYears.SelectedText;
            return value;
        }
This is my function but i get always null value, where is my mistake can anyone help me ?