2008 Is there a way to keep a progress bar moving in a VB .Net windows application during long database calls (SQL Server - 10 seconds or so)? I tried a status strip progress bar running in matrix mode and a System.ComponentModel.BackgroundWorker running a progress bar but when the SQL call to a stored procedure is made they both freeze.
allowed me to get a progress bar. It sums up the size of all the files in the folder and then moves them and as it writes them, it determines how much has been written of the total, and sends that to a progress bar.
Now, what I'm wanting to determine is the best way to do subfolders (an subfolders of subfolders, etc).
Would it be stupid/smart to get a list of the folder structure in a particular folder, then recreate that structure, then get a list of all the files and then use the code in the above thread to recreate those files in their respective folders?
I am making a rather simple backup utility that takes one folder and moves it to another and I'm just trying to figure out the most logical or "accepted" way of handling folders when at the same time, you need to have a total of all the size of all the files being moved so you can display an accurate progress bar.
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.
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)
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.
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?
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).
I have a filesystemwatcher which place files in a queue when they are created. From the queue the files are further processed (xml into SQL database).
The mechanism works fine, but I want to add a progress bar to follow the progress of the files in the queue: processing 1 of 10......2 of 10......3 of 10 etc.For testing, I created a batch file to simulate the creation of files, so the filesystemwatcher can to his work and place the files in the queue. When I tell the batchfile to simulate the creation of 20 files, I see that the amount of files in the queue change. For example;
In the app I'm currently making, I have two progress bars. One for current task being committed and the other is for overall progress.During runtime, I calculate how many tasks are being run and set that as the maximum. As each task completes, the progress bar is incremented by one.
I want the current task progress bar to show the progress of the current task. Some tasks can take a few minutes to complete so that progress bar works great. But, if the task is super quick, like editing registry keys, I see no progress at all.When I edit the registry, it basically goes like this:
It completes so quickly that I never see the bar even move.I also have each task report its name into a label and it skips ahead so quickly that I only see the first task name and the last.Is there any way to make this do a better job at reporting the progress?
I came across a problem in my program it takes too long to calculate the values needed (about 10 sec) .But thats not the problem you don't know when the program is working or not, as it just locks up until its finshed and I view that as a problem.
I need to be able to show the progress of this .I looked at using background Workers but I get exception "Object reference not set to an instance" I believe this is because the background worker cannot write values or something ,As it works will a normal handler.
I'm trying to display the progress in a progress bar, my app reads a csv file before it processes it to a database.and to set the maximum property of the Progress bar i need to detect the number of lines is there a way that im not aware of other than looping the file ?
I'm seriously considering moving from VB.Net to C#. If you made the jump to C# from vb.net, then what were the best resources you used to learn the language going from novice to pro?
I am in the process of moving my Visual Studio development from a 32-bit to a 64-bit system I have set up VS 2008, and copied my build files from the 32-bit system over to the 64-bit system. The program builds OK, but whenever I try to openone of the child forms from the Main form, I get a COM error message (component not registered)
So as a direct result of this global financial hoohar I'm going to start a new job as a VB.net developer tomorrow. Up to this point I've been developing in C# (bit of java, vb6, sql, tibco, etc. here and there)
So the question is this, what are the gotchas to look out for and does anyone have any good advice on writing good vb.net code?(Any other advice on coping with a salary / prospects drop welcome but not essential Just a quick update, company seems really good, current code base appears to be of a very high quality.Am starting to adjust to the VB way of doing things (can't stop myself adding semicolons everywhere though!).
I am finally making the move to vb.net after having supported VB6 apps all this time. I have been learning vb.net 2010 but am finding it difficult to find relevant information on the COM aspect. In VB6 COM was the dominating feature of the language, however, I can't seem to find relevant information on what has happened to COM in vb.net, does it still exist in vb.net, does it work in the same way or are apps designed in a different way in .net to do away with COM dll's?
I need to determine which tab the user is coming from, and going to, when they switch tabs, and possibly cancel the switch. I have tried the Deselecting, Deselected, Selecting, Selected events, and all of them show the e.TabPageIndex to be the same as the sender.SelectedIndex.
Is there an event, or property, that I can use so that I can determine both sides of this, or do I have to hack something together with caching it from one event and using that value in the new event.
I am trying to avoid handling the Deselecting/Deselected events and caching the value to use in the Selecting event. I already know I can do this, so I am asking if there is a cleaner way, without doing this.
I have tried in both C# and VB, with the same results (no surprise).
Am making a game for a college project, its just a mario like game except its a frog.
I want the frog to be able to jump on top of a moving platform in order to get to the other side. However the timer doesn't stop and the frog keeps on moving down. The moving platform has a separate timer called timer2 and the gravity timer is called timer1.
Here is a picture just to show you the game and the frog falling through the platform.
For some reason the moving platform leaves a trail of itself, be cool if you could also fix that for me hehe.
Here is the code for the 'collision '
If Player.Right >= platform.Left And Player.Bottom = platform.Top And Player.Left <= platform.Right Then Timer1.Stop() End If
im making a game (board game) so i need to restrict the picture (character) from moving more than picture on a turn (alfter move is complete they have to press the end turn button, what would the code be for this? (the board is spread into box picturesI like
Image1 is a picture box in child window and vImage is a picture box in parent window. When I open the child window for the first time, I see a complete blank picture in Image1 while at the same time vImage is having a picture on it. When I Hide and reopen it again It has the picture on it. What is the problem and how can I fix it in my Code?
I have an ActiveX DLL that uses ECDSACom from Dragongate Technologies to create a signature for a product license. The product, when starting, uses the signature generated, the public key and the license to check if the license is good.But now I'm changing to .NET and 64bit applications and the ECDSACom can't be used since is a COM DLL. Is there any library so I can check the signature (given the signature, data that was
I'm a recent convert to vb.net (as in I'm doing my very first project) and would like confirmation I'm on the right track from someone more experienced. I've been given the task of generating a Purchasing program for work. I'm taking an object oriented approach, but I'm still new enough to object oriented programming that I am second guessing myself. Here is what I'm doing.
I'm replacing a text box with a combo box. I'm doing this since there are a set amount of inputs for this value. I added the combo box and entered in the values.The problem is that I can't seem to get the value that was selected..I tried setting a text box to the contents of the combo box and nothing happened.TextBox1.Text = cbbct.Text..That is what I tried and it didn't work. This really confuses me since I use a combo box to open save files and that works nicely.Also I'd like to use multiple tabs for my program. I made two tabs then cut and paste my text boxes,buttons, etc. onto them. After I did that I could not open a save file and have it populate the text boxes and set the check boxes. Is there anything I should be careful of when moving stuff to a tab or cutting and pasting?
It is my understanding and experience that VB.NET does not perform well with moving graphics from point A to point B in a form. How do I draw a rectangle or a line and move it from point A to point B? Is there a reliable way to do this without seeing a black rectangle around the moving object on every frame? I've tried this with bitmaps before but it doesn't work. I see the frame rendering and it's way to slow. Perhaps there is an animation Control or library?