Forms :: Progress Bar Stopped Responding?

Dec 21, 2009

I'm using vs2008 programming in vb.net. I'm currently working on a project that reads miscellaneous text files and imports data into a sql database accordingly (Reads line, imports, loops until finished). There are 75k-150k imports to do. I tested it out the other day before using a progress bar, it takes about 5-10 minutes and works fine.

The issue I have is that while importing, if you click anywhere on the form, it will say not responding and will continue to import, but users using the program might be mistaken and think the program has locked up. I thought a progress bar would solve this, since it is responding back while the imports are going on in the background. However, the progress bar works, but as soon as you click anything on the form, it again says not responding and the progress bar stops moving (the imports will complete however). How can I isolate this import process so it can do this in the background, but will not affect the rest of the program?

View 16 Replies


ADVERTISEMENT

Form With A Progress Bar Is Not Responding?

Mar 23, 2009

I need to import a text file into a SQL Database.Beside the button import, I have a progress bar on the form The text file has almost 300.000 records and affter some time it appears on the title bar "Not Responding" and progress bar stops updating.I've reading on forun something about Threads and background processes, but I don't want beleave that for a simple progress bar to work it must have such amount of code.simple way of import all those records.

View 1 Replies

Progress Bar - Stop The (not Responding) Message Being Displayed In The Title Bar?

Jan 2, 2011

I have written a very simple Windows Forms App. which copies files from my hard drive to my USB flash drive.The app. works ok, but while it is running (copying files) the title bar displays (not responding).I have an idea this is due to the time it takes to do a large copy.

I have two questions:First, I want to add a progress bar, as a visual indication as to how much is left to copy, but I don't know how write the code required for the progress bar when copying say: C:*.* (including all sub-directories)

Second, to stop the (not responding) message being displayed in the title bar. Would I need to run the copy as a background process? If so, how?

View 4 Replies

Forms :: Not Responding - Whenever Application Goes Into A Very Long Loop

Jul 31, 2009

Whenever my application goes into a very long loop, the form stops responding. How can I stop this?

View 1 Replies

Forms :: Displaying Progress Bar On Windows Forms?

Apr 2, 2010

I have a progress bar on a Windows Form which displays the number of records as they are retrieved from the database.The problem I'm having is that the entire Form.Load() method seems to run prior to the form being displayed, which means all my code updating the progress bar is gone to waste.

View 4 Replies

Forms :: Creating "please Wait..." For Which Is Not Flicker Or Not Responding

Oct 12, 2010

I am now developing an app to manage process in my company. Since the app will mostly do heavy process such as :

1. Qerying a large database
2. Calculating data displayed on grid
3. Editing value on each cell in a grid and many more

When the app do these stuff, the screen would go into 'not responding" mode, which is quite suck.I am thinking to show a small form contain of 1 label (please wait...) and 1 picture (animated provess gif), but when I do this, the "please wait" form also go to not responding mode.

View 8 Replies

Forms :: Tell If A Progress Bar Is At Its Max?

Jul 9, 2010

2 questions:

1. How, programmatically, can you tell if a progress bar is at its max?

2. If it's at it's max, how can you reset it to zero?

View 1 Replies

Forms :: Threadpool With Progress Bar?

Jul 2, 2009

currently i am using a threadpool that contain a number of thread. This number of thread can be different everytime, sometimes 5, sometimes 10, sometimes 15 and so on (multiple of 5). So now i have it working good by using for loop to queue the thread into threadpool. Now the problems is i do not know how to make the progress bar depending on my threadpool. I want my progress bar to complete only when all the thread are done. After searching google, i found that maybe it can be solve by using AutoResetEvent(false), but after i apply to my program, it still did not work, my program hang at xEvent.WaitOne() method and didnt proceed further, anyone can explain to me how to solve the problem? Or got any other ways? For your information, only 5 threads can be running at the same time as the requirement state so (so i set the setmaxthread to 5 already).

View 1 Replies

Forms Popup Progress Bar

Nov 30, 2010

i have a form that takes a long time to open (because of the volume of data and the devexpress scheduler controls on it). I would like to pop up a progress bar (embedded in a form) to show until the form loads and is finished loading.i added two public methods in the My.MyApplication class...the form with the progress bar shows, but is stuck and doesn't animate.i figure that i need to open this form in a separate thread, but have done no work with multithreading.[code]is there an easy way to make this form always open in a different thread so that it will animate and show my "loading.."

View 3 Replies

Same Progress Bar Show In 2 Forms?

Jun 11, 2011

I have 1 form with the progress bar and 4 buttons with the following code.I would like to create another form that shows the same progress bar with the same progress.Here's my code for progress bar....form load code is:[code]....

how do i get that progress bar to be show in another form?

If form2.ProgressBar1.Value < 100 Then
ProgressBar1.Value += 20
End If

View 1 Replies

Forms - Two Progress Bars Conflicts

Mar 18, 2011

Im having some trouble with my progress bars in VB.Net. I am currently making a 2d game for a college assignment. The problem is i have one for health and one for reloading the reload bar works fine but when i try to code the health bar i think it conflicts with the other Progress bar [Code]

View 3 Replies

Forms :: Create A Progress Bar For A Webbrowser?

Aug 6, 2009

I want to make a progress bar for the loading of a webpage? Anyone know the code for that? I know now...

View 1 Replies

Forms :: How To Update Progress Bar Within Class

Aug 12, 2010

I am wondering how do I update a Progress Bar that resides in Form1 (for example) from a newly created class called from the Button in Form1. I have read several tutorial about backgroundworker. Most of the googled tutorials have their "long process code" in the do_work event. I have tried them and got it working from within the form itself.

However, there are 2 parts (long process) in which I wish to incorporate the updating of the progress bar; First one being a long sub routine that is in the main form (Form1). The second one is another long processing function that resides in a class. It is the second one that is giving the problem as I have no idea how to call the backgroundworker.reportProgress() to update the UI.

Here is the sample flowchart that I have created for the second long processing function:
I wish to insert a new instruction that says "Update the Progress bar that is in Form1" after the current instruction "Store the member into a collection".

View 4 Replies

Forms :: Make An App That Gets The Progress Bar To 'pulse?

May 11, 2009

I want to make an app that gets the progress bar to 'pulse'

My code doesnt seem to work though!?!?!

Public Class Form1
Dim Value
Dim NoValue = "Add"

[Code].....

View 3 Replies

Forms :: Possible To Change Progress Bar Color?

Aug 15, 2009

I am new to VS 2008.. It is possible to change the progress bar loading color (green) to other color? How to change it?

View 3 Replies

Forms :: Progress Bar And Load Dataset?

Dec 17, 2009

so what I want to do should be pretty simple. I've been following the examples found here Using the BackgroundWorker Component - VBForums . I've been successful, but I'm not smart enough to put it in my project.

What I'd like to happen is this

1. I hit a button to load data from a dataset....

2. have a progress bar show until this action is complete.

The main problem is that I can't figure out how to tie the "progress bar" to the action of "pulling the dataset"

I'm sure this is a crazy question for you all, but hey...

Would I put all of the coding in the button_Click sub?

View 9 Replies

Same Progress Bar Show In 2 Forms - VB 2008

Feb 11, 2011

I have 1 form with the progress bar and 4 buttons with the following code. I would like to create another form that shows the same progress bar with the same progress. [Code]

View 1 Replies

Forms :: Complete Progress Bar When Countdown Reaches 0

May 3, 2011

Is there anyway to complete a progress bar just by going ProgressBar1.Value = 100 when you want it to finish. I have a button which starts a countdown, I need the progress bar to complete when countdown reaches 0. Ive already used the step version, but when I want to alert the length of the countdown, the progress bar finishes too late or too early.

View 13 Replies

Forms :: Display Progress Bar While Executing Dos Process?

Jul 2, 2009

hat i am trying to accomplish is execute a dos command with the following

frmStatusBar.Show()
' Set start information.
Dim start_info As New ProcessStartInfo(sOutput)

[code].....

View 6 Replies

Forms :: Load Progress Bar On Separate Thread?

Apr 29, 2010

I have created a form in which i am loading thousand of records. so i want to display a progress bar.Actually i am moving from MDI main meny to some other form so when i click that menu item i want to progress bar till my total records are not loaded.

View 3 Replies

Forms :: Background Thread Doesn't Show Progress?

Mar 15, 2010

I was looking for a solution to run a lengthy job (looking for files on the fixed drives) withouth freezing the UI, and saw that using a BackGroundWorker control is the recommended solution.

Problem is, I don't see its ProgressChange event being triggered:

Imports System.IO Imports System.Text.RegularExpressions

Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Button1.Enabled = False

[Code]...

View 6 Replies

Forms :: Progress Bars Exceeding Their Maximum Sizes?

Apr 28, 2011

I had some trouble a while back with my progress bars exceeding their maximum sizes. I though I had fixed the problem but obviously I was wrong every time the maximum size is exeeded the application enteres debugging mode .... this is really frustrating as the progress bars are a major factor in the game...

What I have is one progress bar which is linked to a clock the clock which ticks up to 1:30 and the game then ends. I also have another progress bar showing the health of the shooter.

I have a series of collision codes set up which are linked to these progress bars, that add to them and take from them.

'Heath pick up collision code...
If (HPU.Top + HPU.Height >= Shooter.Top) And (HPU.Top <= Shooter.Top + Shooter.Height) And (HPU.Left + HPU.Width >= Shooter.Left) And (HPU.Left <= Shooter.Left + Shooter.Width) And HPU.Visible = True Then

[Code]....

I have tried re-routing the overload so that if it cannot add no more to the progress bars it adds nothing to them.

View 4 Replies

Forms :: Visit List Of URLs While Moving Progress Bar

Jun 2, 2010

I'm looking to be able to open a .txt file (with sites 1 per line) and visit all of those sites silently while moving a progress bar.

View 4 Replies

Forms :: Copy Multiple Files Showing Progress In Progressbar

Dec 5, 2010

So as it says in title i need to copy several files from one folder to another. But i dont need to copy folder with files. i need to copy several files to another folder..

And show progress in progressbar.. is there a way how to do it, cos i found only how to copy 1 file showing progress..

View 1 Replies

Creating A Simple Web Browser / Use Progress Bar To Display Load Progress?

Apr 20, 2007

im making a web browser which is intertwind in a project, but i cant get the progress bar to display the current percent of a page that is loaded, i want to have 10 segments, each standing for 10% of the total page loaded. So say a page is loaded 67%, 6 out of 10 of the segments will be shown.

View 3 Replies

VS 2008 Implement A BGW And Want To Report Progress To A Progress Bar For TextFieldParser Program?

Feb 14, 2012

I am trying to implement a BGW and want to report progress to a progress bar for my TextFieldParser program, sometimes if your opening very large files it takes a while and I would like the user to be able to see the progress and have some interaction so they know the program is still running I am a little hung up on what to in the reportprogress

I have:

worker.ReportProgress(0, myReader.ReadFields())

and its not doing anything, I didnt expect it too since ReadFields is an array

parser
Private Sub BackgroundWorker1_DoWork(ByVal sender As Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork
Dim worker As System.ComponentModel.BackgroundWorker = DirectCast(sender, System.ComponentModel.BackgroundWorker)

[code]....

View 6 Replies

File Sync Show Progress In Progress Bar Hangs?

Mar 19, 2010

I copied the code here and translate the code to vb [URL]it is working fine but there is one small problem but I cannot solve? Here is my code: SyncClientVB Another Source The scenario is... the progress is reported by an event (OnCopyingFile event)

Public Sub OnCopyingFile(ByVal sender As Object, ByVal e As CopyingFileEventArgs)
If pbFileTransfer.Value <> e.PercentCopied Then
If txtCurrentFile.Text <> e.FilePath Then
txtCurrentFile.Text = e.FilePath

[code]....

The problem is that it is ok when runned but when I click the form it starts to hang but in the console... it is still continuing.

dp.SyntaxHighlighter.ClipboardSwf = '/dp.SyntaxHighlighter/Scripts/clipboard.swf'
dp.SyntaxHighlighter.HighlightAll('6f5d1b01659646618ff3bdca29fb1b7f')

View 5 Replies

Get The Progress Bar Show The Progress Of The Batchfile Running In The Background??

Jul 7, 2010

get the progress bar show the progress of the batchfile running in the background?

View 10 Replies

Progress Bar - Show The Current Progress Of The Automated Tasks?

Mar 6, 2009

I have two forms, when the user selects a button, the second form opens and an external executable begins an automated process. The point of the second form, is to only show the current progress of the automated tasks and closes when those tasks are completed.How would I use a progress bar to show the current progress of an action on a different form without knowing how long it will take?

View 9 Replies

VS 2008 Progress Bar - Run FrmProcess - Shows Progress Of Their Selection

Jan 4, 2012

frmMain - Allows user to pick process or combination of processes they want to run frmProcess - Shows progress of their selection I have three modules. Each runs a specific process. The frmMain allows the user to run any one of the three modules individually or all together in a single process (basically, runs the one after the other until done).

[Code]...

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved