Case insensitive Listbox strings

  • Thread starter Thread starter Ron James
  • Start date Start date
R

Ron James

I have a Listbox containing strings. When calling Contains
(), I would like a case insensitive comparison. (I don't
want to add newfile.txt to a Listbox containing
NewFile.txt).

I'm considering writing a CaseInsensitiveString class
which would contain a string, and which would do a case
insensitive comparison, but I'm wondering if there's an
easier way.

Thanks
 
Forgive me, but I can't find a Contains() method on
either the WinForms or the Web.UI ListBox control.

Which control specifically are you talking about?

-c
 
Back
Top