Mayo 0 Newbie Poster

Hay man if u are still looking for a way to insert images into a TextBox here is a way. Just execute the following method.
PS: It uses a "RichTextBox"

public void InsertImage(string pic)  
        {
            //string lstrFile = fileDialog.FileName;
            string lstrFile = pic;
            Bitmap myBitmap = new Bitmap(lstrFile);
            // Copy the bitmap to the clipboard.
            Clipboard.SetDataObject(myBitmap);
            // Get the format for the object type.
            DataFormats.Format myFormat = DataFormats.GetFormat (DataFormats.Bitmap);
            // After verifying that the data can be pasted, paste
            if(richTextBox1.CanPaste(myFormat)) 
            {
                richTextBox1.Paste(myFormat);
            }
            else 
            {
                MessageBox.Show("The data format that you attempted site" + 
                    " is not supportedby this control.");
            }
            
        }

The only problem is that it loads the image into the clipboard before loadong it into the
textbox, please note!!!!

Mayo 0 Newbie Poster

Sorry for the noddy qeustion but,
how do i read values from a textbox line for line???????

Mayo 0 Newbie Poster

To send the email, not to sure aboutt he picture.

// create mail message object
MailMessage mail = new MailMessage();
mail.From = "";           // put the from address here
mail.To = "";             // put to address here
mail.Subject = "";        // put subject here    
mail.Body = "";           // put body of email here
SmtpMail.SmtpServer = ""; // put smtp server you will use here 
// and then send the mail
SmtpMail.Send(mail);

Thanks for the reply but i have that syntax, but i would like to know
to load it into the body.
eg. mailMsg.Body = richTextBox.ToString();
Thanx.....

Mayo 0 Newbie Poster

Hey ppl, i'm quite new to the whole programming thing so bear with me.
I want to use a RichTextBox as a body for a email. How do i get the textBox to accept images.

:-|

Cooooool, never mind about the image in TextBox, got that right.
But now i realy need help.......
I want to insert all information from the textBox into a mail message's
body, including the pictures.
Please assist me here.......
:-|

Mayo 0 Newbie Poster

Hey ppl, i'm quite new to the whole programming thing so bear with me.
I want to use a RichTextBox as a body for a email. How do i get the textBox to accept images.

:-|

Mayo 0 Newbie Poster

Sorry man, thanx!

Mayo 0 Newbie Poster

Hey ppl.

I found a few solutions for vb on the "Picture in RichTextBox",
but can anyone please help me with some c# code.....
.:sad: