Case insensitive Listbox strings

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
 
C

Chad Myers

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top