473,804 Members | 2,946 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VB.NET: Progress bar problem with a timer

2 New Member
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 6935
SammyB
807 Recognized Expert Contributor
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 Recognized Expert Expert
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 Recognized Expert Expert
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
Jirachi
2 New Member
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 Recognized Expert Expert
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
1800
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
4614
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 process starts is not especially important, but it must be complete within a small number of seconds. The operations I am performing do not take a long time (hundreds of milliseconds), but as each part of the process is complete, my worker thread...
4
13004
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; MailBoxRenamer oMailBox = new MailBoxRenamer(); //How Can i make the progress bar moving while rename processing is underway pBarCtrl.Visible = true; oMailBox.RenameAll();
0
1482
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", a remoting object created as a singleton object, which would keep track of all file uploads by an id. Does this make sense? I haven't seen this implementation of a progress bar mentioned anywhere. Am I missing something? Thanks for the...
13
2642
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 of directories and files. I've figured out DirectoryInfo (it's pretty simple), but when I invoke DirectoryInfo.GetFiles (or even DirectoryInfo.GetDirectories), it can take forever. Some of the directories have thousands of files in them. So, my...
2
2958
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 through. However when you Add a new status bar to the form with a Progress bar and then immediately perform some intense programming that uses a lot of processor resources, the bars in the progress bar are not displayed, even though the timer appears to...
2
444
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 a menuPanel in the left and content a panel in the right, in the panel I am loading forms... when I select a item from the menuPanel I dispose the form in the right and
5
6938
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 sound. But my little app is a 'fake' app and is designed to look like another - hence this seeming crazy situation of needing to fake a progess bar. PROBLEM.
3
3271
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 the grid. As you might expect, I execute the search in the background but I have to return to the UI thread to bind the results. While databinding, it appears as though the Timer.Tick event never gets fired, so my timer freezes at the time before...
5
23698
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 far: Private Sub Form_Open(Cancel As Integer) If (ProgressBar0.Value <0) then ProgressBar0.Value = ProgressBar0.Value +10 End If ProgressBar0.Value =100 End Sub
0
9704
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10318
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10302
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10069
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9132
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5505
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5639
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2976
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.