Advertisement

There's no such thing as a stupid question, but they're the easiest to answer.
Login
Search

Advertisement

Search Search
Search for:
Tech Support Guy Forums > > >

Progress bar in C# windows application


(!)

dampyr's Avatar
Computer Specs
Member with 23 posts.
THREAD STARTER
 
Join Date: Nov 2011
Experience: Intermediate
10-Jun-2012, 09:45 AM #1
Progress bar in C# windows application
Hello,

i have batch file (142 lines total) syntax is similar to this:


copy something somewhere

start /min excel.xls
start /min excel1.xls
start /min excel2.xls
start /min excel2.xls

-----------------------

and so on

I have created c# Windows form with button which runs batch-all that's fine.However,i want to implement progress bar,which will read thru the bat file once to get the total number of commands in the bat file.
Set the progress bar max value to this value.
Re-read thru the batch file, and after every command is complete, increment the progress bar value by 1


I found Visual Basic code for this,but i would like C# code either.

Thanks in advance.
ckphilli's Avatar
ckphilli   (Chris) ckphilli is offline
Member with 4,018 posts.
 
Join Date: Apr 2006
Location: Down South
Experience: Intermediate
10-Jun-2012, 12:11 PM #2
here's a converter: http://www.codechanger.com/
As Seen On

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine
WELCOME TO TECH SUPPORT GUY!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.


(clock)
THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


WELCOME
You Are Using: Server ID
Trusted Website Back to the Top ↑