PC Review


Reply
Thread Tools Rate Thread

attaching pic from PictureBox Control

 
 
sloopy5235@yahoo.com
Guest
Posts: n/a
 
      21st Sep 2005
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!

 
Reply With Quote
 
 
 
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      21st Sep 2005
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


<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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!
>


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PictureBox with scroll bar control midicad2001@yahoo.com Microsoft VB .NET 4 10th Dec 2005 08:12 PM
Picturebox control in Access2003? Gerard Jonker Microsoft Access 2 16th Feb 2004 10:03 PM
Databound PictureBox control David Ricker Microsoft VB .NET 2 23rd Oct 2003 08:10 PM
Picturebox control bill Microsoft Dot NET 0 15th Sep 2003 01:39 PM
How to don't refresh Control of PictureBox Having? kylin Microsoft Dot NET 0 25th Jul 2003 05:07 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:40 PM.