I would think what are you trying to compare? the combobox selected value or combobox selected text?
if comparing the text try this:
if combobox1.selecteditem.text = txtname.text then
else
end if
if comparing the value try this:
if combobox1.selectedvalue = txtname.text then
else
end if