QUOTE(dreamer1980 @ 20 Jul, 2008 - 10:35 AM)

I have added a filelistbox to the form and update the path property depending on textbox. This part works ok but I also want to count the files displayed in the listbox using the folloing code.
CODE
int test = fileListBox1.items.count;
This works fine in VB but when run in C# I get the following error
QUOTE
'Microsoft.VisualBasic.Compatibility.VB6.FileListBox' does not contain a definition for 'items' and no extension method 'items' accepting a first argument of type 'Microsoft.VisualBasic.Compatibility.VB6.FileListBox' could be found (are you missing a using directive or an assembly reference?)
hopefully I have ade it clearer
C# is a case-sensitive language, so this:
CODE
int test = fileListBox1.items.count;
is not equal to this:
CODE
int test = fileListBox1.Items.Count;
Try the second code snippet.