Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Attachments +ProgressBar

Status
Not open for further replies.

McKaulick

Programmer
Oct 24, 2002
35
0
0
AR
Hi all, I have a simple WindowsForm app that send images selected on the disk by email! I want to have a progress bar that increment as long as the app is sending the mail. How can I do that?

///// For info
System.Web.Mail.SmtpMail.Send(mailMessage);


Mckaulick
 
The SmtpMail class has no event that will advise you of it's progress.

If you really want to provide the user some feedback, the best you'll do is throw up a fake progress indicator (use one of the avi files in the common7\graphics directory) that is run on another thread.

Chip H.
 
Where is the common7/graphics directory? How can I get that? Are you talking of the System.Windows.Forms.ProgressBar?

Mckaulick
 
If you did a default install of VS.NET, it's:
C:\Program Files\Microsoft Visual Studio .NET\Common7\Graphics\videos

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top