Set selected item in combo box

T

Tim Kelley

How do I programmatically select an time in a combo box? I can set the text
but it does not automatically set the selected property. There is a
SetCurSel() method but I don't know what the index of the item I want to
select(or how to find it).

Thanks
 
D

David Lowndes

How do I programmatically select an time in a combo box? I can set the text
but it does not automatically set the selected property. There is a
SetCurSel() method but I don't know what the index of the item I want to
select(or how to find it).

Tim,

When you insert the text into the list, you should be returned the
index value.

Dave
 

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

Top