i am creating attached file email sending application, in my application i want to set progressbar1.maximum value as file size value. please tell me how to set attach file size value to progressBar1.Maximum c#/.net
i am creating attached file email sending application, in my application i want to
Share
According to your question you wish to set the attached file size to the progressbar’s maximum property.
Try the following:
Make sure to include
System.IORefer to the following link to learn how to use the progress bar control.
http://msdn.microsoft.com/en-us/library/system.windows.forms.progressbar.maximum.aspx#Y700
This link will introduce you to the
FileInfoClass:http://msdn.microsoft.com/en-us/library/system.io.fileinfo.aspx