Hi, I'd like to be able to get rid of a picturebox I'm using on one of my forms.
I know I'll have to use StretchBlt API to replace the paintpicture vb function in my code but how would I go about creating the device context to replace the picturebox itself and making all this work.
I guess I should ask also... is loading an image to a device context much quicker than loading to a picturebox?
Thanks in advance,
what I have so far
VB Code:
Dim MyPic As StdPicture Set MyPic = LoadPicture(picturePath) Call Picture1.PaintPicture(MyPic, 0, 0, Picture1.Width, Picture1.Height) Set MyPic = Nothing Image1.Picture = Picture1.Image Set Picture1.Picture = Nothing




Reply With Quote