miguel28 / imagelistview

Automatically exported from code.google.com/p/imagelistview
0 stars 0 forks source link

System.Format.Exception #168

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
i got some errors System.FormatException while adding jpg files...

my code is

    Private Sub btnReloadFolders_Click(sender As Object, e As EventArgs) Handles btnReloadFolders.Click
        Try
            Lsi.Items.Clear()
            Lsi.SuspendLayout()
            For Each _itm As ListViewItem In LsvFolder.CheckedItems
                Dim _dirpath$ = _itm.SubItems(2).Text
                If My.Computer.FileSystem.DirectoryExists(_dirpath$) = True Then
                    Lsi.Items.AddRange(My.Computer.FileSystem.GetFiles(_dirpath$, FileIO.SearchOption.SearchTopLevelOnly, "*.jpg").ToArray)
                End If
            Next
        Catch ex As Exception
        Finally
            Lsi.ResumeLayout() : Lsi.Invalidate() : Lsi.Update() : Lsi.Refresh()
        End Try
    End Sub

Original issue reported on code.google.com by avsraj1...@gmail.com on 6 Aug 2014 at 11:24

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by avsraj1...@gmail.com on 6 Aug 2014 at 11:28

Attachments:

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r704.

Original comment by oozcitak on 25 Aug 2014 at 4:09