There's very little difference between the two. I don't know what the function CaptureActiveWindow() is, but you could try this:
Me!imagebox.PictureData = CaptureActiveWindow()
If this doesn't work, please post the code for CaptureActiveWindow().
Bill