473,396 Members | 2,036 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

how to display the progress bar until sql procedure running in vb.net?

Dear All,
I want to display the Progress bar control in my vb.net application until my procedure runs at the backend. Please anyone help me to do this.


Regards,
Bluesathish
Nov 18 '11 #1
2 4182
Read on the Backgroundworker and you should be able to do it yourself. Some tips:

In the DoWork event run your procedure and call ReportProgress with a value related to how much of your data was loaded compared to the total amount (basically a percentage), and as well send any value you might also need(UserState parameter).

In the ProgressChanged event adjust the progressBar1.Value to the percentage(or a variation of it based on progressBar1.Maximum), by using e.ProgressPercentage, as well as do anything with the value from e.UserState if you need to.

In the RunWorkerCompleted event you can put the value of the progress bar to its maximum or display a message box that loading the data has finished, or whatever (like hide the progress bar).

Hope this helps
Nov 18 '11 #2
You can call report progress or even you can set the progress bar with timer.
If ProgressBar1.Value <= 32 Then

Label7.Text = "Initializing....."

ElseIf ProgressBar1.Value <= 52 Then

Label7.Text = "Loading components....."

ElseIf ProgressBar1.Value <= 72 Then

Label7.Text = "Integrating Database...."

ElseIf ProgressBar1.Value <= 100 Then

Label7.Text = "Please wait..."

End If

If ProgressBar1.Value = 100 Then

Timer1.Dispose()

Me.Visible = False

Dim cur As New FrmLogin()

cur.Show()

End If
Dec 14 '11 #3

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

Similar topics

3
by: Andras Gilicz | last post by:
Hi VB fans Is there a simple way to create a progress bar with a running % in the middle? The standard progress bar of VB6 cannot do it. How can I make the % number progressively inverted, as...
2
by: owais | last post by:
H I want to display progress bar during execution of windows form. When I execute DTS package the form will idle till the DTS package finishes Please help me in this regard. its an urgen ...
6
by: Ragtimer | last post by:
I'm struggling my way through building an Access 2k application, learing how to do each step as I get to it .... in other words I'm pretty new at this ...... I'm running a series of processes...
5
by: GB | last post by:
Okay, here is what I am trying to do We have a dialog of windows that collects information for generation of a dynamic HTML report. The last page in the wizard dialog accepts all report options...
2
by: Roy Chastain | last post by:
I have a aspx web page that is a long running task (1 - 2 min's). I would like to display an actual progress such as X out of Y items processed. I assume that the correct way to start about this...
1
by: Anonieko | last post by:
Query: How to display progress bar for long running page Answer: Yet another solution. REFERENCE: http://www.eggheadcafe.com/articles/20050108.asp My only regret is that when click the...
1
by: peterlan | last post by:
Hello, I have an issue with a long-running import process in our asp.net app (1.1). After the user initiates an import, we're trying to make periodic xmlhttp requests to update a progress bar. In...
4
by: avicalc | last post by:
I need help with the structure of a JavaScript program. My process is as follows: 1) Get JSON data via XMLHttpRequest. 2) When done with the above, process the JSON data which may take up to 3...
0
by: Mark Davis | last post by:
Want to get macro to display progress whilst a loop is progressing the rest of the code. Tried creating a userform, but then the user form waits for me to "Close" it before processing the code and...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.