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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

display member

Status
Not open for further replies.

VICKEL1

Programmer
May 16, 2005
15
GB
strCode = "RR"

Me.ComboEvent.DisplayMember = strCode

Where strCode is in the combo.

Why is this value not being displayed in my combo box?
 
What do you mean strCode is in the combo (do you mean it is a property that you want to display)? DisplayMember isn't how you get the SelectedItem of the combobox if that is what you are trying to do.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Not sure you are looking for this..
vb6
Me.ComboName = strCode

vb.net
Me.ComboName.Text = strCode

________________________________________________________
Zameer Abdulla
Help to find Missing people
Seek counsel of him who makes you weep, and not of him who makes you laugh.
 
What do you mean strCode is in the combo (do you mean it is a property that you want to display)? DisplayMember isn't how you get the SelectedItem of the combobox if that is what you are trying to do.

It is a value in the combo box that I want to be highlighted on the combo?
 
Try using the SelectedItem like I hinted at above (you can also use FindString to find a particular string that may exist in one of the items).


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top