Previous Thread:   Sentonbehalfofname From-field

9/21/2005 12:12:32 PM    attaching pic from PictureBox Control
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!



9/21/2005 4:45:42 PM    Re: attaching pic from PictureBox Control
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.  
  
--  
  
Ken Slovak  
  
[MVP - Outlook]  
  
http://www.slovaktech.com  
  
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003  
  
Reminder Manager, Extended Reminders, Attachment Options  
  
http://www.slovaktech.com/products.htm  
  
<sloopy5235@yahoo.com> wrote in message  
  
news:1127329952.700358.50910@z14g2000cwz.googlegroups.com...