 |
|
 |
Hi, I tested the demo application and it works fantastic I must say. How do I import or make use of teh control in a VB application, I'm using VS 2010
|
|
|
|
 |
|
 |
From the MS Help:
1. On the Tools menu, click Choose Toolbox Items.
2. In the Choose Toolbox Items dialog box, select the appropriate tab and locate the newly installed control.
—or—
Click Browse to navigate to the location of the control.
3. Click OK.
The control will then appear in your toolbox when editing a Windows Form. In step 2 you will need to use the browse button to select the compiled DLL of the control. You will then need to ship it with your application.
Alternatively you can copy the class directly into your project. VS should then add the control automatically to the toolbox.
|
|
|
|
 |
|
 |
I am using Microsoft Visual Studio 2008. I added SpinningProgress.dll to my Visual Basic project's \bin\Release folder and added SpinningProgress.dll to the project's references. However, when I try to paste the object to my project's Windows Form I get the following message "An error occurred wile processing this command. An error occurred while parsing EntityName Line 2 Poosition 130" and it does nopty paste. Liine 2 of the source code for the spinning progress bar is "using System.Collections;". This cannot ber the probem. Can anyone help me with this problem?
|
|
|
|
 |
|
 |
I'm not sure how you are trying to paste this, or where you have copied it from. You don't need to add a reference.
You should add the control to the toolbox (right click it, select Choose Items). The spinning progress control will then appear as a control you can add.
The first time you add it VS will automatically add a reference to your project.
|
|
|
|
 |
|
|
 |
|
 |
Excellent post !! Thanks a lot !!
This control works like a breeze when multithreading is handled in client code.
|
|
|
|
 |
|
 |
Thanks a lot for this - saved me several hours. Great work, elegant and simple!
|
|
|
|
 |
|
 |
Thanks for this control, i was just wanted the one in sql server, but i think this will freeze when my thread is busy. If it does, i'll have to convert it to a gif somwhow
Strogg
|
|
|
|
 |
|
 |
In the form.Initialize I set the control to hide. At the start of a long process, I set it to show but it does not show. If I comment out hiding the control, it displays all the time. Why does the hide/show functionality not work? I'm using the C# 2.0 version. I would really like to use the control, but it does not work the way I think it should.
Thanks
|
|
|
|
 |
|
 |
Nicely done
Kevin S. Gallagher
Programming is an art form that fights back
|
|
|
|
 |
|
 |
Need to rebuild this if your using an App With Keys
Worth the hassle?
NOT
|
|
|
|
 |
|
 |
Hi,
Nice control, but is it possible to make the background Transparent ?
Thanks in advance
Yves
|
|
|
|
 |
|
 |
This control is brilliant.
Good job
|
|
|
|
 |
|
 |
Hello,
Thanks a lot for this project ! It is very nice and I liked it a lot...
I have a question about using this in my code. In my code I am having a button on the form and after this button gets pressed, I parse a XML file and insert XML file contents in Access database. So I am using this control without threading as I am enabling the control before button press with SpinningControl.Show() and disabling it after data gets insert fully into database as SpinningControl.hide()
So it starts right but when I click XMLParse button, it freezes. I am not using threading because I do not know whether this needs threading. Please let me know how should I use this control in this scene. I am new to VB 2008. Thanks again !
|
|
|
|
 |
|
 |
You're problem is a lack of threading.
The Circular Progress control will be running on the main thread, which is used for all GUI work. However, because you haven't dispathed your CPU intensive task off to a second thread it is stopping all GUI updates (can you move/resize the form?).
The solution is simple. Put your intensive task onto a separate thread. I would recommend you look into the BackgroundWorker object. It is really easy to implement, you just put all of your code (or atleast the main block, you can still call other functions) into the DoWork event. It will also raise a RunWorkerCompleted event that will allow you to hide the running progress control.
Note that you cannot do any GUI updates from within the DoWork event (such as show/hide the progress control). These need to be done before you call the worker.RunWorkerAsync method and in the RunWorkerCompleted event.
|
|
|
|
 |
|
 |
This is a relly cool control. Congrats on that.
But I am unable to make this work using multi threading
I used doevents and Thread.Sleep(0). Nothing seems to work.
Public Class Form1
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
'DisplayProcessingGraphics.Show()
BackgroundWorker1.RunWorkerAsync()
'Busy loop.
Dim z As String
For i As Integer = 0 To 100000
For s As Integer = 0 To 100000
For x As Integer = 0 To 100000
z = x.ToString()
Application.DoEvents()
Next
Next
Next
End Sub
Private Sub BackgroundWorker1_DoWork(ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork
DisplayProcessingGraphics.Show()
End Sub
End Class
Any help is appreciated.
|
|
|
|
 |
|
 |
Sorry for the slow reply.
You are approaching the BackgroundWorker from the wrong angle. You shift the work to the worker, NOT GUI updates. GUI updates really need to stay on the main application thread (cross-threading is a real pain in GUIs, so best to avoid it!).
Try
Public Class Form1
Private Sub Form1_Load(ByVal sender As Object,
ByVal e As System.EventArgs)
Handles Me.Load
DisplayProcessingGraphics.Show()
BackgroundWorker1.RunWorkerAsync()
End Sub
Private Sub BackgroundWorker1_DoWork(ByVal sender As System.Object,
ByVal e As System.ComponentModel.DoWorkEventArgs)
Handles BackgroundWorker1.DoWork
Dim z As String
'Busy loops
For i As Integer = 0 To 100000
For s As Integer = 0 To 100000
For x As Integer = 0 To 100000
z = x.ToString()
Next
Next
Next
End Sub
End Class
|
|
|
|
 |
|
 |
Does just what I need. Thanks!!
|
|
|
|
 |
|
|
 |
|
 |
That code certainly seems a little "funky".
As far as I know, it is bad practice to do GUI updates on a seperate thread unless it cannot be helped. You get into delegation, etc and if done incorrectly can lead to GUI dead-locks which make DB dead-locks look like a walk-in-the-park!!
It is always better to put the actual work-load onto a sperate thread. That way the whole GUI not just the spinning progress remains responsive (ie Moving/Sizing the form, etc).
I am a member of EE so will post some tips there too.
|
|
|
|
 |
|
 |
Possibly some one has "amended" the contents of the source files but:-
Not a single one of the downloads will open in any version of Visual Studio... not just me ... two colleagues as well.
Shame as it really does look a good component
|
|
|
|
 |
|
 |
I have just downloaded and tested the main copy of the files (the VB version) and it opened without a problem.
What version of VisualStudio are you using? The projects are in VS 2005 format. I have used them since on VS 2005SP1 and they convert without issue to VS2008.
|
|
|
|
 |
|
 |
Hi,
We use VS 2003, VS 2005 and VS2008.
The problem, I have discovered, seems to be related to Active Directory rather than to Visual Studio or the download files.
I have downloaded here on my stand alone box and opened in VS without any problems.
First job Moday morning is to find out why ....
Nice component, well executed, Im impressed.
|
|
|
|
 |
|
 |
Some companies implement AD rules that re-direct parts of your profile (my docs, desktop, etc) to a server. By default, CAS in .Net restricts access to .Net things running on remote locations.
Try placing the files in somewhere that is definately on your local machine.
|
|
|
|
 |
|
 |
Hi m8,
I just came across to your Circular progress bar and I would like to ask you for permission to use it in my first comercial application I'm currently witting.
I would give you credit in the about box for your work, thats not a problem. You done a great job; I love the way you have done it.
Regards
Antonio
|
|
|
|
 |