Click here to Skip to main content
15,894,410 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: DataAdapter / Datatable Pin
dannyboi8629-Jul-11 5:58
dannyboi8629-Jul-11 5:58 
GeneralRe: DataAdapter / Datatable Pin
David Mujica1-Aug-11 10:50
David Mujica1-Aug-11 10:50 
GeneralRe: GridView appears to have no data when trying to sort it Pin
dannyboi8627-Jul-11 3:45
dannyboi8627-Jul-11 3:45 
GeneralRe: GridView appears to have no data when trying to sort it Pin
Shameel27-Jul-11 5:23
professionalShameel27-Jul-11 5:23 
QuestionSearch and delete files Pin
hendrikbez26-Jul-11 22:29
hendrikbez26-Jul-11 22:29 
AnswerRe: Search and delete files Pin
Andy_L_J26-Jul-11 23:09
Andy_L_J26-Jul-11 23:09 
AnswerRe: Search and delete files Pin
Dave Kreskowiak27-Jul-11 1:27
mveDave Kreskowiak27-Jul-11 1:27 
AnswerRe: Search and delete files Pin
Carmelo La Monica27-Jul-11 2:14
professionalCarmelo La Monica27-Jul-11 2:14 
Hello,

you can do something like this and then using a foreach loop, or list them on datagird.

Dim strFileSize As String = ""
        Dim di As New IO.DirectoryInfo("C:\path")
        Dim aryFi As IO.FileInfo() = di.GetFiles("*.pdf")
        Dim fi As IO.FileInfo

        For Each fi In aryFi
            strFileSize = (Math.Round(fi.Length / 1024)).ToString()
            
            'yourdatagridcell("File Name: {0}", fi.Name)
            'yourdatagridcell("File Full Name: {0}", fi.FullName)
            'yourdatagridcell("File Size (KB): {0}", strFileSize)
            'yourdatagridcell("File Extension: {0}", fi.Extension)
            'yourdatagridcell("Last Accessed: {0}", fi.LastAccessTime)
            'yourdatagridcell("Read Only: {0}", (fi.Attributes.ReadOnly = True).ToString)
        Next


Regards
Carmelo La Monica

GeneralRe: Search and delete files Pin
hendrikbez27-Jul-11 19:49
hendrikbez27-Jul-11 19:49 
GeneralRe: Search and delete files Pin
Thomas Krojer28-Jul-11 21:27
Thomas Krojer28-Jul-11 21:27 
GeneralRe: Search and delete files Pin
MicroVirus9-Aug-11 13:54
MicroVirus9-Aug-11 13:54 
QuestionDBGRID32.OCX and Windows 7 Pin
hroenick26-Jul-11 15:37
hroenick26-Jul-11 15:37 
AnswerRe: DBGRID32.OCX and Windows 7 Pin
_Damian S_26-Jul-11 15:48
professional_Damian S_26-Jul-11 15:48 
AnswerRe: DBGRID32.OCX and Windows 7 Pin
Dave Kreskowiak26-Jul-11 17:05
mveDave Kreskowiak26-Jul-11 17:05 
AnswerRe: DBGRID32.OCX and Windows 7 Pin
Shameel27-Jul-11 1:10
professionalShameel27-Jul-11 1:10 
GeneralRe: DBGRID32.OCX and Windows 7 Pin
Dave Kreskowiak27-Jul-11 1:26
mveDave Kreskowiak27-Jul-11 1:26 
GeneralRe: DBGRID32.OCX and Windows 7 Pin
Shameel27-Jul-11 2:22
professionalShameel27-Jul-11 2:22 
QuestionHow to write addin that works in both Powerpoint 2007 and Powerpoint 2010 Pin
Hypermommy22-Jul-11 3:49
Hypermommy22-Jul-11 3:49 
AnswerRe: How to write addin that works in both Powerpoint 2007 and Powerpoint 2010 Pin
tosch26-Jul-11 4:11
tosch26-Jul-11 4:11 
GeneralRe: How to write addin that works in both Powerpoint 2007 and Powerpoint 2010 Pin
Hypermommy26-Jul-11 4:36
Hypermommy26-Jul-11 4:36 
QuestionIs there a way to check if email is send or not Pin
C#Coudou21-Jul-11 23:59
C#Coudou21-Jul-11 23:59 
AnswerRe: Is there a way to check if email is send or not Pin
tosch26-Jul-11 4:09
tosch26-Jul-11 4:09 
QuestionWEB Services in vb6.0 Pin
dineshp12321-Jul-11 2:19
dineshp12321-Jul-11 2:19 
AnswerRe: WEB Services in vb6.0 Pin
Dave Kreskowiak21-Jul-11 2:57
mveDave Kreskowiak21-Jul-11 2:57 
AnswerRe: WEB Services in vb6.0 Pin
Smithers-Jones21-Jul-11 9:04
Smithers-Jones21-Jul-11 9:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.