Connecting Tech Pros Worldwide Help | Site Map

Progess ...Message

Newbie
 
Join Date: Mar 2008
Location: Australia
Posts: 23
#1: May 7 '08
Hi All,
I have problem with making a Progress Message. I am doing an analysis in mathematical terms whech takes abt mote than 2 mins . so in that time I want to show user a progressbar taht will show the percentage......


how I will do in Loop - vb: such as
for i=0 to 10000000

analysis part

how hoing to put progress message?
next

Please provide some idea if u help me out, thx a lot
debasisdas's Avatar
Moderator
 
Join Date: Dec 2006
Location: Bangalore ,India
Posts: 7,497
#2: May 7 '08

re: Progess ...Message


try to use a timer control with the progress bar.
Newbie
 
Join Date: Dec 2006
Posts: 20
#3: May 7 '08

re: Progess ...Message


here's how you can show that on a label, it might seem quite resource consuming but at low level progress bars and all other similar work this way I think
Expand|Select|Wrap|Line Numbers
  1. for i as integer=0 to 10000000 
  2. 'analysis part
  3. ProgressLabel.Text= i*100/10000000 'or ...=i/100000 , obvious right?
  4. next
  5.  
and of course you might wanna use some rounding...
Newbie
 
Join Date: Mar 2008
Location: Australia
Posts: 23
#4: May 8 '08

re: Progess ...Message


Quote:

Originally Posted by kuzen

here's how you can show that on a label, it might seem quite resource consuming but at low level progress bars and all other similar work this way I think

Expand|Select|Wrap|Line Numbers
  1. for i as integer=0 to 10000000 
  2. 'analysis part
  3. ProgressLabel.Text= i*100/10000000 'or ...=i/100000 , obvious right?
  4. next
  5.  
and of course you might wanna use some rounding...

Hi Many thx for ur advice, Just I cant understand "ProgressLabel" how can I get that ? Is this control or ...? if u pls explain me bit more, again Thx.
Newbie
 
Join Date: Dec 2006
Posts: 20
#5: May 8 '08

re: Progess ...Message


no, it's just a label, I called it ProgressLabel since that's what it shows
Expand|Select|Wrap|Line Numbers
  1. for i as integer=0 to 10000000
  2. 'your analysis
  3. label1.text=i/100000 & "%"
  4. next
  5.  
Reply