"MikeG0930" wrote:
> 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 When you say you are having trouble on this line, what is the trouble?
As a guess, I would try the following to build the filename properly:
PicAnimDC = CreateDC(Path.Combine(Application.StartupPath, picF(i)), picH(i))
Mike