Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27061

Using the ImageListView tool in Windows Forms

$
0
0
Hi I am using an open source external tool called ImageListView for use in a usercontrol. I am running visual studio 2010 and programming in vb using the 4.0 .net framework.

I'm trying to customise the ImageListView so the first column shows the index, the second shows the thumbnail of the image and the third displays the filename. I have added the following code inside an if statement to show the open file dialog box.

Dim file As String

For Each file In OpenFileDialog1.SafeFileNames
ImageListView1.Items.Add(file)
Next
ImageListView1.Items(0).SetSubItemText(0, "IMG001")

I have also added 3 columns in the windows form designer mode (via the small arrow)

What else do I need to do to get this displaying correctly.

Any help would be greatly appreciated.

Viewing all articles
Browse latest Browse all 27061

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>