Monday, January 24, 2005

The Code Project - IProgressDialog .NET

The Code Project - IProgressDialog .NET - .NET

"...The reason for this article is to show 'pure' .NET wrapper for IProgressDialog[^] unleashed by sytelus in his Using Windows Explorer Progress Dialog In Your Application article.

Whilst the original article is quite good and I liked the idea greatly, I have found it a bit too 'slow and heavy' with .tlb imports. I was also unable to find any other articles/examples of implementation for .NET, so I decided to see if I can do it myself.
So here is what I have come up with

..."


Damn. You really do learn something new every...

I never knew the Progress dialog HAD an interface, or was callable from my apps. I thought it was built into Explorer... Well now I know better. And now I have to throw away my frmProcess form. And I put a number of hours into it, making it match as closly as possible and to be reuable... Oh well less code for me to maintain. sigh :|

The above article covers .Net, but I also have a number of VB6 apps. Doing a quick google for VB6 samples, there's a number of examples but the first shows me just what I need IProgressDialog

I feel kind of stupid not knowing about this and in spending any time at all on a virtual copy. But then again I know there are others in my shop who don't know about it and have made their own virtual copies, so I don't feel too bad (RIGHT... I still feel stupid. Damn I HATE reinventing the wheel).

Well nothing can be done about the past, so time to focus on the future...

No comments: