hi
im doing program that capture image and send the image for my email
the only way that this code work - when i doing Button and click - and that send for my email
but when i write all the code in the Form1_Load - that give me eror/
this is the code:
Form1_Load Function:
webcam.Start();
imgCapture.Image = imgVideo.Image; //(imgCapture and imgVideo == PictureBox)
imgCapture.Image.Save(@"d:\SavedImage.jpeg", System.Drawing.Imaging.ImageFormat.Jpeg);
MailMessage mail = new MailMessage();
SmtpClient SmtpServer = new SmtpClient("smtp.gmail.com");
....... // etc....
and that give me eror
but when i write only webcam.Start(); in Form1_Load and the other code in button click
that work
how i can to do that? non button click!
thanks...