Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8555165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:03:40+00:00 2026-06-11T15:03:40+00:00

i am creating attached file email sending application, in my application i want to

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T15:03:42+00:00Added an answer on June 11, 2026 at 3:03 pm

    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.IO

    const string fileName = "myFile.dat";
    
    FileInfo file = new FileInfo(fileName);
    long holdFileSize = file.Length;
    
    progressBar1.Maximun = holdFileSize;
    

    Refer 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 FileInfo Class:

    http://msdn.microsoft.com/en-us/library/system.io.fileinfo.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating an attached behavior in order to set a regular property of a
I have a taxonomy attached with my content type. While creating node of that
I'm creating a simple BizTalk 2010 process that will convert a 4010 835 file
I have an application, it is creating an ICS similar to the following: BEGIN:VCALENDAR
I'm creating a site where user can create a node with multiple images attached.
I have a file that I am creating on the fly like this: //
I'm creating a simple web application with which a user may author a message
I'm creating a Magento module that saves user-input data to an xml file (held
I'm creating a Rails 3.0.3 gem and can't get it to work: # attached.rb
I am creating game with box2d physics, I have a crane with rope attached

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.