Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
Sir/madam
 
I need a control which display all files in a control in my vb.net application.. so i want to know by which control i can view all files in a control ... thank in advance
 
[edit]SHOUTING removed - OriginalGriff[/edit]
Posted 6-Feb-13 22:11pm
Edited 6-Feb-13 22:19pm
v2
Comments
OriginalGriff at 7-Feb-13 4:19am
   
DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously.
Rahul Dhoble at 7-Feb-13 4:21am
   
Agreed. I would have given 5+ vote if feature available
20061967 at 10-Feb-13 7:48am
   
What do you mean by all files in a control ?
 
Do you want to display files in a directory in a control inside vb.net ?
aspnet_regiis -i at 10-Feb-13 12:01pm
   
I need a credit card for which I will never be billed... ( Posting it here so that somebody may provide me a ready made solution..And I am too lazy to try it myself)

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Dear Mohammad,
 
This is not a question. If you want to list all files in a directory (say, you root at c: ), you could do something like this :
Dim di As New IO.DirectoryInfo("c:\")
   Dim diar1 As IO.FileInfo() = di.GetFiles()
   Dim dra As IO.FileInfo
 
  'list the names of all files in the specified directory
   For Each dra In diar1
       ListBox1.Items.Add(dra)
   Next
As i'm a little lazy today, i googled this and found it in List Files in a Directory[^].
 
Take care,
VG
  Permalink  
v2
Comments
Tadit Dash at 10-Feb-13 8:49am
   
Hi VitorHugoGarcia,
 
This is what Original Poster comments to you.

OP Comments moved from Answer box

hey u dont read my question .... read it carefully ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Nirav Prabtani 298
1 OriginalGriff 289
2 Sergey Alexandrovich Kryukov 225
3 _Amy 165
4 Richard MacCutchan 135
0 OriginalGriff 7,799
1 Sergey Alexandrovich Kryukov 6,966
2 Maciej Los 3,994
3 Peter Leow 3,708
4 CHill60 2,742


Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 10 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100