Closed Thread
Results 1 to 2 of 2

Thread: Progress bar help!! Right away!!

  1. #1
    Leg3nd is offline Newbie
    Join Date
    Mar 2009
    Posts
    1
    Rep Power
    0

    Progress bar help!! Right away!!

    I am brand new to this, I started last night to be exact and I'm done with my NotePad that I made, but I want to add a progress bar so that when people open Big files such as .doc or other text files, then the bar will display how far it has opened.

    I am using C#

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Mar 2009
    Posts
    1,375
    Rep Power
    24

    Only some possible ideas...

    I assume you use TextBox class, and you load a text file using, for example, System.IO.File.ReadAllText(string); Or maybe you use RichTextBox with LoadFile() method?

    This way or another I see there are 2 possible solutions. Neither is easy or handy.

    1. Make a method that reads the file buffer-after-buffer in a while loop. Inside the loop you can also update the progressbar.

    2. You could put that File.ReadAllText() method into a 2nd thread, and set progressbar.Style to Marquee. After the method ended, you stop the progressbar.

    Is this any help? I imagine it is not...

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Progress Bar
    By WolfEyes in forum Visual Basic Programming
    Replies: 6
    Last Post: 03-04-2011, 04:41 PM
  2. Help with progress bar?
    By eliasmaq in forum Visual Basic Programming
    Replies: 2
    Last Post: 07-10-2010, 04:16 AM
  3. C# progress bar help
    By Siten0308 in forum C# Programming
    Replies: 8
    Last Post: 03-26-2010, 09:24 AM
  4. Progress bar help
    By mholt in forum C# Programming
    Replies: 2
    Last Post: 08-21-2008, 11:13 AM
  5. Javascript Progress Bar
    By dirkfirst in forum JavaScript and CSS
    Replies: 4
    Last Post: 08-23-2006, 12:32 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts