Click here to Skip to main content
15,888,816 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionAccessing a network drive letter??? Pin
Britnt712-Jul-04 5:50
Britnt712-Jul-04 5:50 
AnswerRe: Accessing a network drive letter??? Pin
Dave Kreskowiak12-Jul-04 6:08
mveDave Kreskowiak12-Jul-04 6:08 
GeneralRe: Accessing a network drive letter??? Pin
Britnt712-Jul-04 7:06
Britnt712-Jul-04 7:06 
GeneralRe: Accessing a network drive letter??? Pin
Britnt712-Jul-04 7:22
Britnt712-Jul-04 7:22 
GeneralRe: Accessing a network drive letter??? Pin
Dave Kreskowiak12-Jul-04 10:29
mveDave Kreskowiak12-Jul-04 10:29 
GeneralSystem.OutOfMemoryException Pin
Brad Fackrell12-Jul-04 4:44
Brad Fackrell12-Jul-04 4:44 
GeneralRe: System.OutOfMemoryException Pin
Dave Kreskowiak12-Jul-04 6:04
mveDave Kreskowiak12-Jul-04 6:04 
GeneralRe: System.OutOfMemoryException Pin
Brad Fackrell12-Jul-04 6:17
Brad Fackrell12-Jul-04 6:17 
Here is the sub that I'm using:

    Public Sub AddThumbnails()<br />
<br />
        Dim strFiles() As String<br />
        Dim intCounter As Integer = 0<br />
        Dim intTotalFiles As Integer = 0<br />
        Dim imgThumbNail As Image<br />
<br />
        Dim imgcallback As Image.GetThumbnailImageAbort = New Image.GetThumbnailImageAbort(AddressOf ThumbCallback)<br />
<br />
        strFiles = System.IO.Directory.GetFiles("C:\Test1")<br />
        intTotalFiles = strFiles.GetLength(0)<br />
<br />
        If intTotalFiles = 0 Then<br />
            Exit Sub<br />
        End If<br />
<br />
        Me.lvPics.LargeImageList = ilPicts<br />
        Me.ilPicts.ImageSize = New Size(96, 96)<br />
<br />
        ilPicts.Images.Clear()<br />
        lvPics.Items.Clear()<br />
<br />
        Do Until intCounter = intTotalFiles<br />
            imgThumbNail = Image.FromFile(strFiles(intCounter))<br />
            ilPicts.Images.Add(imgThumbNail.GetThumbnailImage(96, 96, imgcallback, System.IntPtr.Zero))<br />
            lvPics.Items.Add(strFiles(intCounter), intCounter)<br />
            intCounter = intCounter + 1<br />
<br />
        Loop<br />
<br />
    End Sub


I’m clearing my controls. Do I need to do more?

Thanks
Brad
GeneralRe: System.OutOfMemoryException Pin
Brad Fackrell12-Jul-04 6:56
Brad Fackrell12-Jul-04 6:56 
GeneralRe: System.OutOfMemoryException Pin
beowulfagate12-Jul-04 13:46
beowulfagate12-Jul-04 13:46 
GeneralRe: System.OutOfMemoryException Pin
Brad Fackrell13-Jul-04 7:58
Brad Fackrell13-Jul-04 7:58 
GeneralWeb browser credentials Pin
wizard_nz12-Jul-04 0:09
wizard_nz12-Jul-04 0:09 
QuestionOpenFileDialog and StartUpPath of Windows Service? Pin
mythinky11-Jul-04 23:37
mythinky11-Jul-04 23:37 
AnswerRe: OpenFileDialog and StartUpPath of Windows Service? Pin
Syed Abdul Khader11-Jul-04 23:55
Syed Abdul Khader11-Jul-04 23:55 
AnswerRe: OpenFileDialog and StartUpPath of Windows Service? Pin
Dave Kreskowiak12-Jul-04 6:49
mveDave Kreskowiak12-Jul-04 6:49 
GeneralError in deploying to Pocket PC Pin
Member 53081011-Jul-04 22:13
Member 53081011-Jul-04 22:13 
GeneralRe: Error in deploying to Pocket PC Pin
Dave Kreskowiak12-Jul-04 0:56
mveDave Kreskowiak12-Jul-04 0:56 
GeneralRe: Error in deploying to Pocket PC Pin
12-Jul-04 1:43
suss12-Jul-04 1:43 
GeneralHelp in Serialization and Remote events Pin
Member 106003411-Jul-04 21:51
Member 106003411-Jul-04 21:51 
GeneralRe: Help in Serialization and Remote events Pin
James Gohl14-Jul-04 8:53
James Gohl14-Jul-04 8:53 
QuestionHow to call a form using keyboard like F3 Pin
Seah6911-Jul-04 17:46
Seah6911-Jul-04 17:46 
AnswerRe: How to call a form using keyboard like F3 Pin
Syed Abdul Khader11-Jul-04 23:21
Syed Abdul Khader11-Jul-04 23:21 
AnswerRe: How to call a form using keyboard like F3 Pin
Syed Abdul Khader11-Jul-04 23:45
Syed Abdul Khader11-Jul-04 23:45 
GeneralWord.Application how to load to object without open Pin
vancouver77711-Jul-04 13:00
vancouver77711-Jul-04 13:00 
GeneralRe: Word.Application how to load to object without open Pin
Dave Kreskowiak11-Jul-04 16:53
mveDave Kreskowiak11-Jul-04 16:53 

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.