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
"Ron James" <Ro*******@nospam.rojacs.com> wrote in message
news:0a****************************@phx.gbl...
But I'm not comparing the string myself. Listbox.Contains
() is (presumably) comparing the strings, or rather the
objects, it contains.
-----Original Message-----
Check out String.Compare function for case insentive
compares.
-----Original Message-----
I have a Listbox containing strings. When calling
Contains(), I would like a case insensitive comparison. (I don'twant 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
.
.