Results 1 to 3 of 3

Thread: FileInfo class creation

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2002
    Location
    Hendersonville , NC
    Posts
    260

    Question FileInfo class creation

    I am very new to .net...
    With lstSelectedItems
    .Items.Clear()
    .BeginUpdate()
    Dim fi As FileInfo
    For Each fi In lstMultiSelect.SelectedItems
    .Items.Add(fi.Name)
    Next
    .EndUpdate()
    End With

    On the FILEINFO .. this is a class... How and where does this get created. I am trying to cut some code from the CD Examples into my project and can not track this down.. Somebody .. please help
    William E Gollnick

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Not sure what you mean but ...
    when you type this code :

    Dim fi As FileInfo (this means you're creating an object named "fi" in the mem , so that you can use it in your code .

    "lstSelectedItems" this probably a listbox or combobox . You can change it to adapt your needs .

  3. #3
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    This should work according to the error you got !

    Dim fi As IO.FileInfo

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width