By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,255 Members | 2,575 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,255 IT Pros & Developers. It's quick & easy.

Progess ...Message

P: 24
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
May 7 '08 #1
Share this Question
Share on Google+
4 Replies


debasisdas
Expert 5K+
P: 8,127
try to use a timer control with the progress bar.
May 7 '08 #2

P: 20
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...
May 7 '08 #3

P: 24
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.
May 8 '08 #4

P: 20
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.  
May 8 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.