![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Loading an array of images from an a file into a Picture Box in VB I want to be able to load images from a file located in a folder. I don't want to use ImageList. These images will appear in a picture box one at a time in succession. I am also using the BitBlt Function. The line of code I am having trouble with is: PicAnimDC = CreateDC(Application.StartupPath & picF(i), picH(i)) picAnimDC - Stores the device context picF(i) - Stores filename constants picH(i) - Stores handles of loaded pictures |
My System Specs![]() |
| | #2 (permalink) |
| | RE: Loading an array of images from an a file into a Picture Box in VB "MikeG0930" wrote: Quote: > I want to be able to load images from a file located in a folder. I don't > want to use ImageList. These images will appear in a picture box one at a > time in succession. I am also using the BitBlt Function. The line of code I > am having trouble with is: > > PicAnimDC = CreateDC(Application.StartupPath & picF(i), picH(i)) > > picAnimDC - Stores the device context > picF(i) - Stores filename constants > picH(i) - Stores handles of loaded pictures As a guess, I would try the following to build the filename properly: PicAnimDC = CreateDC(Path.Combine(Application.StartupPath, picF(i)), picH(i)) Mike |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Read a line from a text file, without loading the entire file inmemory | PowerShell | |||
| Picture Images | Vista music pictures video | |||
| Picture browsers will not display images. | Vista file management | |||
| Help and Support Images Not Loading | Vista performance & maintenance | |||
| Images Not Loading in Vista | Vista General | |||