Get a list of all files inside of a directory in vb.net

后端 未结 3 1970
悲&欢浪女
悲&欢浪女 2020-12-01 14:52

How can you obtain a list of files (as a stringcollection or some other storage method) which contains the full path on the user\'s computer to the files?

Is there a

3条回答
  •  北荒
    北荒 (楼主)
    2020-12-01 15:32

    Add a Listbox to Windows Form and Add following code on Form Load or other events :-

    ListBox1.Items.AddRange(Directory.GetFiles("Your Directory PAth Here"))
    

    Hope IT Helps ; From Nirav

提交回复
热议问题