all groups > visual c > september 2007 >
You're in the

visual c

group:

Set selected item in combo box


Set selected item in combo box Tim Kelley
9/27/2007 10:14:26 AM
visual c:
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

Re: Set selected item in combo box Tim Kelley
9/27/2007 10:55:34 AM
I found it. FindString() and SetCurSel() does it.

Thanks

[quoted text, click to view]

Re: Set selected item in combo box David Lowndes
9/27/2007 4:57:47 PM
[quoted text, click to view]

Tim,

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

AddThis Social Bookmark Button