Click here to Skip to main content
12,302,514 members (63,039 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: VB 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 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 7-Feb-13 4:21am
   
Agreed. I would have given 5+ vote if feature available
20061967 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 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 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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160530.1 | Last Updated 10 Feb 2013
Copyright © CodeProject, 1999-2016
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