PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework What happened to FindByValue in the compact framework??

Reply

What happened to FindByValue in the compact framework??

 
Thread Tools Rate Thread
Old 01-12-2006, 12:55 PM   #1
adiel_g@hotmail.com
Guest
 
Posts: n/a
Default What happened to FindByValue in the compact framework??


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

  Reply With Quote
Old 01-12-2006, 01:41 PM   #2
adiel_g@hotmail.com
Guest
 
Posts: n/a
Default Re: What happened to FindByValue in the compact framework??

Ooops! FindByValue is for ASP.NET. The correct code in the compact
framework is:

cmbBx.SelectedValue = mySelection

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off