Click here to Skip to main content
16,022,418 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI everybody

I need to add a progress bar to my form while inserting a data in database-insert query- i am using visual basic 2008

thanks
Posted
Comments
[no name] 22-Jun-11 7:21am    
do you want the progress bar on web or on window application??
Sergey Alexandrovich Kryukov 22-Jun-11 14:42pm    
Tag it! WPF, Forms, APS.NET, what?!
Why this is a problem?
--SA

You can:

0) Put a ProgressBar control on the form and hide it when you don't need it

1) Create a new form with the progressbar in it and have that form do the actual database insert

2) Create a modeless for with a progress bar that is displayed as long as the database updating process is running.

3) Put a progressBar control into a StatusStrip panel, and update that instead of pouluting the form proper.

I would probably go with #3, and use a thread to run the database updating process. Your requirements will be what drives your decision.
 
Share this answer
 
You can use

ProgressBar1.Value = [your desired value as you wish]
ProgressBar1.Update()


For your solution.

Thanks.
 
Share this answer
 
Just Bing it here [^]

and Pick out of your choice
have Fun !
 
Share this answer
 
Try reading through some of these CP Articles[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900