Does anyone know how to pull a picture out of a form? We're converting modules made a long time ago into .Net, and we don't have copies of the pictures that went in the picture boxes. They're all reference drawings that we would really like back. I'd like to retrieve the originals, but I'll settle for print screens if I have to.
Thanks,
Mike
Hi Mike,
I don't have VB6 anymore, but I think the PictureBox control has the same properties as its equivalent, the Image control in VBA.
There you can do this to save the image to bmp using the built-in function of VB:
<code>
Private Sub CommandButton1_Click()
Call SavePicture(Image1.Picture, "C:\temp\mybitmap.bmp")
End Sub
</code>
This DevCast might also be of interest to you, thought it's about AutoCAD VBA projects:
Cheers,
I just realized I forgot to mention this is an iLogic form. I think the link has been broken on a lot of these images.
Mike
Hi Mike,
Is it a Global Form? In that case it would be quite easy to get the pictures from the "C:\Users\Public\Documents\Autodesk\Inventor 2015\Design Data\iLogic\UI\Form1.xml" (or whatever it's named exactly)
If it's a local form then I have to ask around.
As mentioned here it might be somewhere in the UiBuilder.dll: http://forums.autodesk.com/t5/inventor-customization/ilogic-form-injector/td-p/3550486
Cheers,
They are local forms, but I started looking at the file paths that can be found by clicking on the image in form edit mode. Then I clicked "Image" in the lower window, and then another click in the same row, but one column to the right. That brought up the browse button on the right which lead me to the original location of the files. After some digging I found all of the locations where the images had been stashed. I know this doesn't answer my original question, but it did the job. Unfortunately, I don't have the time to hunt this down any further. Thanks for all the help, though!
Mike