Click here to Skip to main content
15,889,116 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: WMI Access Pin
wakkerjack10-Jul-04 23:17
wakkerjack10-Jul-04 23:17 
GeneralRe: WMI Access Pin
Dave Kreskowiak11-Jul-04 5:27
mveDave Kreskowiak11-Jul-04 5:27 
GeneralRe: WMI Access Pin
wakkerjack11-Jul-04 10:32
wakkerjack11-Jul-04 10:32 
GeneralRe: WMI Access Pin
Dave Kreskowiak11-Jul-04 11:53
mveDave Kreskowiak11-Jul-04 11:53 
GeneralRe: WMI Access Pin
Dave Kreskowiak11-Jul-04 12:03
mveDave Kreskowiak11-Jul-04 12:03 
GeneralRe: WMI Access Pin
wakkerjack12-Jul-04 3:01
wakkerjack12-Jul-04 3:01 
GeneralRe: WMI Access Pin
wakkerjack20-Jul-04 9:59
wakkerjack20-Jul-04 9:59 
GeneralGetThumbnailImage with ListView Pin
Brad Fackrell7-Jul-04 7:44
Brad Fackrell7-Jul-04 7:44 
Okay. Now I’m making some progress. Thanks, beowulfagate, for suggesting the GetThumbnailImage method.

Can anybody tell me how to use the GetThumbnailImage method to fill a ListView?

Here is what I have:

lstPhotos.BeginUpdate()<br />
            lstPhotos.Items.Clear()<br />
            Dim strFiles() As String<br />
            Dim x As Integer<br />
            strFiles = Directory.GetFiles(formLibrary.componentPath)<br />
            For x = 0 To strFiles.Length - 1<br />
                Dim objListViewItem As New ListViewItem<br />
                Dim imageThumb As Image<br />
                With objListViewItem<br />
                    .Text = Path.GetFileName(strFiles(x))<br />
                    .SubItems.Add(Format(FileLen((strFiles(x))), "###,###,###,###"))<br />
                    .SubItems.Add(CStr(File.GetLastWriteTime(strFiles(x))))<br />
                End With<br />
                lstPhotos.Items.Add(objListViewItem)<br />
<br />
            Next x<br />
            lstPhotos.EndUpdate()


This lists the contents of the formLibrary.componentPath folder but I can't see how to use GetThumbnailImage to display the images as thumbnails in lstPhotos.

Thanks.
Brad
GeneralRe: GetThumbnailImage with ListView Pin
Brad Fackrell8-Jul-04 11:37
Brad Fackrell8-Jul-04 11:37 
GeneralRe: GetThumbnailImage with ListView Pin
beowulfagate8-Jul-04 13:24
beowulfagate8-Jul-04 13:24 
GeneralRe: GetThumbnailImage with ListView Pin
Brad Fackrell9-Jul-04 9:58
Brad Fackrell9-Jul-04 9:58 
GeneralRe: GetThumbnailImage with ListView Pin
beowulfagate9-Jul-04 14:08
beowulfagate9-Jul-04 14:08 
GeneralRe: GetThumbnailImage with ListView Pin
Brad Fackrell11-Jul-04 4:04
Brad Fackrell11-Jul-04 4:04 
GeneralRe: GetThumbnailImage with ListView Pin
beowulfagate11-Jul-04 13:38
beowulfagate11-Jul-04 13:38 
GeneralRe: GetThumbnailImage with ListView Pin
Brad Fackrell12-Jul-04 4:42
Brad Fackrell12-Jul-04 4:42 
GeneralVB-6 Menus Pin
N4LXL7-Jul-04 3:06
N4LXL7-Jul-04 3:06 
GeneralRe: VB-6 Menus Pin
Dave Kreskowiak7-Jul-04 5:27
mveDave Kreskowiak7-Jul-04 5:27 
Generalsetting the track bar control Pin
Prowess6-Jul-04 23:29
Prowess6-Jul-04 23:29 
GeneralRe: setting the track bar control Pin
hpAng6-Jul-04 23:49
hpAng6-Jul-04 23:49 
GeneralRe: setting the track bar control Pin
Prowess7-Jul-04 0:23
Prowess7-Jul-04 0:23 
GeneralAdding User-Controlled Sound to Visual Basic .NET Pin
6-Jul-04 20:58
suss6-Jul-04 20:58 
GeneralRe: Adding User-Controlled Sound to Visual Basic .NET Pin
hpAng6-Jul-04 21:33
hpAng6-Jul-04 21:33 
GeneralRe: Adding User-Controlled Sound to Visual Basic .NET Pin
hpAng6-Jul-04 23:11
hpAng6-Jul-04 23:11 
Generalquery interface in VB??..... Pin
kunja_chan6-Jul-04 11:15
kunja_chan6-Jul-04 11:15 
GeneralRe: query interface in VB??..... Pin
beowulfagate6-Jul-04 13:52
beowulfagate6-Jul-04 13:52 

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.