.FindString method missing

B

Bill Mitchell

I have a combobox on a form and am trying to programmatically set the
initial value based off a data table.

I found an example using .FindString but when I try to add code like

myCombobox.FindString("Apple")

I get the following error in the Task List of VS2003;

'FindString' is not a member of 'System.Windows.Forms.ComboBox'.

Any idea?

Thanks,
Bill
 
B

Bill Mitchell

Peter,

I actually found through trying to use the code you referenced that I was on
the right track to start with. I was basically needing to select in a
drop-down combo the item represented in a existing table. The problem was
that the table had trailing spaces where the listbox did not. So this
simple change of adding Trim( ) did the trick;

cboxType.SelectedItem() = Trim(drowCurrentToDoRow.Item("Type"))

Thanks for your help,
Bill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top