What happened to FindByValue in the compact framework??

  • Thread starter Thread starter adiel_g
  • Start date Start date
A

adiel_g

I use this in the .NET framework to auto-select a value from a
combobox:

cmbBx.SelectedIndex =
cmbBx.Items.IndexOf(cmbBx.Items.FindByValue(mySelection))

Now I am trying to do the same thing in the NET compact framework but
FindByValue is not there??

Is there a way to do the above (in one line of code like shown above)
without using FindByValue?

Thanks Before Hand,
Adiel
 
Ooops! FindByValue is for ASP.NET. The correct code in the compact
framework is:

cmbBx.SelectedValue = mySelection
 
Back
Top