Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Progress dialog
Message
General information
Forum:
Visual Basic
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00698182
Message ID:
00698672
Views:
20
Thanks Vin. I was probably a bit unclear on previous occasion so let me try to make it up.

The component is an Addin for MS Office applications and in this particular case integrates with Outlook. The mission is to attach a document originaly stored on a dav server to a mail message created on client's machine through the interface created by me. The operation taking some time is the call of the following sort:
MyMailItem.CurrentItem.Attachments.Add ("http://myserver/mydocstore/mydocument.doc",,,"My document")
Obviously, I don't have much control over this operation takin some time because it is the downloading of the specified document to the temp.folder on the client and then attaching through Outlook API (both done internally by Outlook) that is time consuming. What I thought I'd do was to make some sort of simple call to some Windows API function in the line before the one mentioned above to display a modal dialog with no buttons saying "Attaching document..." and then terminate it right after completion. Once again, I've seen such dialogs in various windows functions such as enabling of the Lan connection where a dialog pops up with text "Enabling...". I just need to find out what I should call to get a hold of it.

Thanks

>Hey Danijel. There are a few ways to accomplish this, depending on how, exactly, the component is coded and all that.
>
>It's unclear to me if the component that's running and taking some time is one that you wrote and have some control over. If so, you could raise an event from the component every iteration (if it's a looping process), or before each new chunk of code; and then in the client process' code, react to this event by changing some text of the screen, or incrementing a progress bar, or whatever...
>
>If you don't have control over the called process, or you'd prefer to deal with this at the front-most screen, level, try incorporating an animated GIF into your app. This site may help you out:
>
>http://skyscraper.fortunecity.com/capacity/402/activex.html
>
>
>Good luck.
>
>>Guys, help. This is more of an irritating issue than the critical one. I'd like to get it done, but I'll manage without it as well. If I get it done with your help, I'll probably overuse it other places as well, but what the heck...
>>
>>I have a client component written in VB6 and some operations are more time consuming than others. So I thought I'd try to display a modal dialog with no buttons and preferably some sort of icon and obviously little text letting the user know something is happening. Hourglass on mouse icon simply doesnt do it for me anymore. Sort of like the dialog you get when you enable a disabled LAN connection in Win2K/XP, just some text basically - no buttons. There's gotta be some Shell/WinAPI function that does something like this
>>
>>Hope I made myself fairly clear and thanks a bunch.
Danijel
Previous
Reply
Map
View

Click here to load this message in the networking platform