 |
|
 |
Will this work as a usercontrol? I like the concept here, but the AnimationForm is causing issues. Is there anyway to create the ProcessAnimation as a self contained usercontrol. My wish is to add the ProcessAnimation to a panel and set it to fill the panel. This way I can have a semitransparent panel the is shown over my grids when they are loading. The animation would then be embedded in the panel and positioning will not be an issue.
Any ideas? Also is there a way to remove the this black boarder?
|
|
|
|
 |
|
 |
So when I need to show a message box to the user on my other thread, (like, overwrite yes or no?), it is coming up behind the animation. Is there any way to make my message come up in front? So far my work around is to control the position of the animation, but I would prefer if I could keep everything centered and just make the message box top most. Thanks for any suggestions. Also, this is an awesome project, thank you for sharing.
|
|
|
|
 |
|
 |
when Running the program which has the MCAnimation Process, then I turn to Other application(such as word etc.), and then I turn back the running program before it finished, but the running propram cannot open until finished computity.
How can I turn back the running program before it finished, and it can open immediately?
|
|
|
|
 |
|
 |
If you have a long running process without interrupts, the application interface will "lock" due to the process taking all of the thread time. Place an Application.DoEvents into the code. This will free up some thread time for the interface, but will also free up all other controls of the application, thus buttons, links, etc. will be clickable and events will be handled and code will be run, so you should disable anything you don't want clicked during the process.
Hope this helps
Please rate my articles!
Greg Osborne
|
|
|
|
 |
|
 |
My code is like this. I have a ProcessAnimation (called ProcessAnimator) object on my form...
ProcessAnimator = New CMAnimation.ProcessAnimation
ProcessAnimator.Show(CMAnimation.ProcessAnimation.PleaseWaitAnimation)
... my processing here (goes quick!)
ProcessAnimator.Cancel()
The animation shows, my processing runs, but the animation never goes away! Even if I close the form (it's a modal dialog), the animation stays. I tried doing a ProcessAnimator.Dispose() but that doesn't work either. I have to close the app for the animation to go away.
Thoughts?
|
|
|
|
 |
|
 |
My Bad . The Cancel is getting set too quickly and is actually getting reset to False before the first image is displayed
here's how to fix it...
In the ProcessAnimation Class, put the following somewhere in the class declarations
Private _Cancel As Boolean
In the Cancel Method, put _Cancel = True as the first line.
In the BackgroundWorker_DoWork method, change the .ShowDialog() line to .Show() and then add the following after
Do Until _Cancel : Application.DoEvents() : Loop
_Cancel = False
.Close()
Hope this helps. Will update the source download accordingly.
Please rate my articles!
Greg Osborne
|
|
|
|
 |
|
 |
I tried what you recommended, rebuilt the DLL and now the animation isn't appearing at all. There are no errors or exceptions thrown, the pop-up just never appears. Not sure if I did anything wrong or not. I'll wait for your new download to be posted and try again.
Steve
|
|
|
|
 |
|
 |
Depends on how log your process takes before Cancel is called. If your process is going away quickly, you likely won't see it.
Please rate my articles!
Greg Osborne
|
|
|
|
 |
|
 |
Yep, I thin you're right. I found a record in which the process takes about 2 seconds. The animation appeared. Thanks! This is a cool control. Been looking for something like this that's easy to use off-and-on for a while... Steve
|
|
|
|
 |
|
 |
Can you explain to newbies why you've referenced the Form1 class using MyClass... as opposed to Me... ? I know one is overridable and the other is not, but is it critical in this app? If so, why?
Thanks
|
|
|
|
 |
|
|
 |
|
 |
Sorry, didn't answer your question.
No it's not critical in this app. Just the convention I used. There are only minor differences and these only when you are doing inheritance. Could have used have used Me just as effectively.
Please rate my articles!
Greg Osborne
|
|
|
|
 |
|
 |
Thanks for the link in your previous post. The explanation there is easier to understand than that presented by Microsoft.
Thanks.
PS a 5 from me too!
|
|
|
|
 |
|
 |
Please if possible provide it in C# version too. I will be thankful
Always Keep Smiling.
Yours Pankaj Nikam
|
|
|
|
 |
|
 |
Sorry , I've stopped double-posting. Shouldn't be too difficult to convert to c# though
|
|
|
|
 |
|
 |
Its OK no problem. Thanks anyways for such wonderful and exciting code
Always Keep Smiling.
Yours Pankaj Nikam
|
|
|
|
 |
|
 |
Thanks for sharing.
Where there's smoke, there's a Blue Screen of death.
|
|
|
|
 |
|
 |
Simple, clean, effective.
|
|
|
|
 |