Hi,
Im trying to load animated GIF's from a folder to my listview, I'm able to load it but not moving
One more problem is, a lot of GIF are inside that folder,but the display in listview show the same image
how can i fix it, is there better way how to load animated GIF to listvew?
here's my code
lvSmiley.Items.Clear()
Dim imlTemp As New ImageList
Dim dirFiles() As String = IO.Directory.GetFiles("C:\Program Files (x86)\Emotes")
Dim _imgList As New ImageList
Dim imgSize As New Size
imgSize.Width = 20
imgSize.Height = 50
lvSmiley.LargeImageList = _imgList
Dim count As Integer = 0
Dim item As New ListViewItem
For Each dirFile As String In dirFiles
Dim imgFilename As String = IO.Path.GetFileNameWithoutExtension(dirFile)
Dim img As New System.Drawing.Bitmap(dirFile)
Dim imgImage As Image = Image.FromFile(dirFile)
'Dim imgHeight As Integer
'imgHeight = imgImage.Height
imgSize.Height = imgImage.Height
_imgList.ImageSize = imgSize
_imgList.Images.Add(img)
lvSmiley.Items.Add(imgFilename, count)
count += 1
Thanks in advance