if Combobox1.ItemIndex = 0 then ... if Combobox1.ItemIndex = 1 then ... if Combobox1.ItemIndex = 2 then ...