Whenever I try to find an index in a listbox, i get the answer as -1.
here's my code.
Can someone help me why this happens?Code:listbox1.Items.Add("43") Messagebox.Show(listbox1.Items.IndexOf("43")
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 9 of 9
Thread: [RESOLVED] listbox HelpThreaded View
|
Click Here to Expand Forum to Full Width |