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:
  1. Dim MyPic As StdPicture
  2. Set MyPic = LoadPicture(picturePath)
  3.           Call Picture1.PaintPicture(MyPic, 0, 0, Picture1.Width, Picture1.Height)
  4.           Set MyPic = Nothing
  5.           Image1.Picture = Picture1.Image
  6.           Set Picture1.Picture = Nothing