473,386 Members | 1,630 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,386 software developers and data experts.

VB.NET: Progress bar problem with a timer

I have a splash screen set up with a 5 second timer, no problems there. When I try to add a Progress Bar it does not function. This is for a school project but usually I don't have problems. This is my first time using a progress bar but maybe this requires some special touch I am currently unaware of.
Dec 17 '07 #1
5 6910
SammyB
807 Expert 512MB
What VB are you using? VB.NET, VB6, or VBA?

You will need to set your timer interval to an increment of the 5 seconds, say every half second and update the progress bar ten times and then exit the splash screen. HTH --Sam
Dec 17 '07 #2
debasisdas
8,127 Expert 4TB
You need to increase the value of progressbar on timer event. Once it reaches its maxvalue, close the splash screen and go to the desired location in application.
Dec 18 '07 #3
Killer42
8,435 Expert 8TB
The basic problem most people run into is not realising that the progress bar doesn't actually do anything for itself. It's just a fancy way of displaying the information you pass to it.

You start out by setting the upper and lower limits. Then periodically you pass it a value (within these limits) to say how far you have progressed. It merely displays that value in a graphical format.

So, it's up to you to track your progress, and periodically pass a value to the ProgressBar control. Clear?
Dec 18 '07 #4
Expand|Select|Wrap|Line Numbers
  1. While (Me.uiProgressBar.Value < Me.uiProgressBar.Maximum)
  2.             Me.uiProgressBar.Value = Me.uiProgressBar.Value + 1
  3. End While
  4. Me.Close()
This is what I have inside the Timer function. I must be missing something here. I'm assuming the Timer function doesn't perform the commands inside it until the timer has completed its intended duration. How can I force it to check or something similar? Or maybe I'm using it entirely wrong, I'll keep looking, though.

I'm using VB.NET by the way.

EDIT: I got it working now :)
Dec 18 '07 #5
Killer42
8,435 Expert 8TB
Glad to see you got it worked out. :)

I hope you realised what was wrong with the While loop.
Dec 18 '07 #6

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

Similar topics

2
by: Kurien Baker Fenn | last post by:
I would like to show the progress of an application using the progress bar in visual basics using the timer.Please help me. Thanks in advance.
77
by: Charles Law | last post by:
Hi guys I have a time critical process, running on a worker thread. By "time critical", I mean that certain parts of the process must be completed in a specific time frame. The time when the...
4
by: Raed Sawalha | last post by:
Dear, I have windows form , the form is using a class to do all tasks needed like this private void btnProcess_Click(object sender, System.EventArgs e) { btnProcess.Enabled = false;...
0
by: Joel Cade | last post by:
I'd just like a sanity check on my thinking. I'm attempting to create a progress bar for a file upload to an ASPX page. I'm adding an HTTP Module, which would then call into a "Progress Handler",...
13
by: Tom Scales | last post by:
OK, I admit, I am not a VB.NET expert and am still learning, but have run into an annoying problem. I'm writing a program that has to search the file system and therefore processes large numbers...
2
by: Robert Smith | last post by:
Hello, I have a problem with my progress bar, as shown in the attached code, the values on the bar are incremented within a threaded timer event. The timer works fine and ticks all the way...
2
by: Diogo Alves - Software Developer | last post by:
Hi, I am having a giant headache because a progress bar on a statusStrip. Ok I will describe all the details to get help from anyone.... I have a MainForm, this form as a a component that is...
5
by: CCLeasing | last post by:
For an application I'm creating I want to create a 'fake' progress bar. By fake I mean a progress bar that looks like it's doing something but actually isn't. I know philosophically this isn't...
3
by: David Smith | last post by:
I have an app that shows the time it takes to execute a search, much like SQL Management Studio, but the app behaves as though the System.Windows.Forms.Timer gets blocked while binding the results to...
5
by: maniesh | last post by:
I want to complete a project and I want to place a timed progress bar on my splash screen, I want to find out a method of timing my progress bar to update every 10 seconds. here's what I got so...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.