Advertisement

06.08.2008 at 11:21PM PDT, ID: 23468157
[x]
Attachment Details

Progressbar  running in  code

Asked by fordraiders in Microsoft Visual Basic.Net

vb.net 2003

public sub myroutine()

MarqueeProgress()
mycode here  <=--------


end sub


Is there anyway to keep the bars moving and still run my other code  ?


Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
code from webtubbs:
Public RunProgress As Boolean = False
 
    Public Sub MarqueeProgress()
        RunProgress = Not RunProgress
        Do While RunProgress
            With ProgressBar1
                If .Value = .Maximum Then
                    .Value = .Minimum
                Else
                    .Value += 1
                End If
                Threading.Thread.Sleep(10)
                Application.DoEvents()
            End With
        Loop
    End Sub
 
Loading Advertisement...
 
[+][-]06.08.2008 at 11:29PM PDT, ID: 21741299

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Visual Basic.Net
Sign Up Now!
Solution Provided By: webtubbs
Participating Experts: 3
Solution Grade: A
 
 
[+][-]06.08.2008 at 11:38PM PDT, ID: 21741325

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.08.2008 at 11:39PM PDT, ID: 21741330

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.09.2008 at 01:40AM PDT, ID: 21741735

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.09.2008 at 07:44AM PDT, ID: 21743546

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906