Click here to Skip to main content
15,891,864 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Updated 6-Feb-13 22:19pm
v2
Comments
OriginalGriff 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.
RDBurmon 7-Feb-13 4:21am    
Agreed. I would have given 5+ vote if feature available
Bala Selvanayagam 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 ?
bbirajdar 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

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 :
VB
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
 
Share this answer
 
v2
Comments
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900