Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combo Box..

Status
Not open for further replies.

VCPro

Programmer
Joined
Feb 3, 2003
Messages
30
Location
US
I am using the following code to populate the editcontrol of a combo box but, it is always displaying First value in the list. Any hints at what it could be?

m_Combo.SelectString(-1,m_StringValue)

and the code is executed in Page refresh of the form.

But, the combo always displays the first value in the list.

I have the data that I need to display in the m_stringvalue even before executing the code above.

Would appreicate any hints.


Thanks!
 
Can be something to do with UpdateData and another bound variable to the ComboBox?
Greetings,
Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top