Can anyone help??
I need to pass a picture back from a function to the caller without writing the picture to the hard drive.
Here is my code that doesn't work.


public Function Create_picture(moSymbol as MapObjects2.Symbol, X as Integer, Y as Integer)

set frmCreatePic.sym = moSymbol
frmCreatePic.X = X
frmCreatePic.Y = Y
Load frmCreatePic
frmCreatePic.Show vbModal
Create_picture = frmCreatePic.ImageList1.ListImages(1).Picture
End Function

'This works but the caller of this function says
'"Object required"

'CALLER --->
Picture1.Picture = obj.Create_picture(sym, 120, 50)





Thank you
Raistlin