Progess ...Message

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shaif
    New Member
    • Mar 2008
    • 24

    Progess ...Message

    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
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    try to use a timer control with the progress bar.

    Comment

    • kuzen
      New Member
      • Dec 2006
      • 20

      #3
      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
      Code:
      for i as integer=0 to 10000000 
      'analysis part
      ProgressLabel.Text= i*100/10000000 'or ...=i/100000 , obvious right?
      next
      and of course you might wanna use some rounding...

      Comment

      • shaif
        New Member
        • Mar 2008
        • 24

        #4
        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
        Code:
        for i as integer=0 to 10000000 
        'analysis part
        ProgressLabel.Text= i*100/10000000 'or ...=i/100000 , obvious right?
        next
        and of course you might wanna use some rounding...
        Hi Many thx for ur advice, Just I cant understand "ProgressLa bel" how can I get that ? Is this control or ...? if u pls explain me bit more, again Thx.

        Comment

        • kuzen
          New Member
          • Dec 2006
          • 20

          #5
          no, it's just a label, I called it ProgressLabel since that's what it shows
          Code:
          for i as integer=0 to 10000000
          'your analysis
          label1.text=i/100000 & "%"
          next

          Comment

          Working...