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
Tim Kelley - 27 Sep 2007 16:55 GMT
I found it. FindString() and SetCurSel() does it.
Thanks
> 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
David Lowndes - 27 Sep 2007 16:57 GMT
>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