attaching pic from PictureBox Control

S

sloopy5235

Hey,
I'm wondering if anyone can help me attach a pic to an Outlook email
using VB, where the pic comes from the Picture object in a PictureBox
Control and isn't necessarily saved as a separate file. I would also
like to have this pic embedded in the email. I've figured out how to
create an email with an embedded image in it (using the code for here:
http://www.outlookcode.com/d/code/htmlimg.htm ), but I can't figure out
how to attach the Picture object from a PictureBox control as opposed
to an existing jpg (or gif or bitmap) file. Any help would be much
appreciated!
 
K

Ken Slovak - [MVP - Outlook]

You'd need to get the picture and save it to the file system, probably using
Win32 API calls. Outlook needs to have the image you want to embed using
code as a file in the file system.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top