Select to view content in your preferred language

ProgressDialog updates erratically

574
2
06-20-2013 04:08 PM
MichaelMurphy8
Deactivated User
So, I've been trying to use the ShowProgressDialog snippet do perform some long-running tasks, and no matter what I do, the progressbar is going crazy.  It simply doesn't update as it is supposed to.  Is there a way to force a refresh after each step, offeset or set_message.  I'm able to change the messages and description ok while it's running, it's just the progressbar that's failing to update.
0 Kudos
2 Replies
MichaelMurphy8
Deactivated User
So...I give up.  This is just another instance of ArcGIS being implemented poorly.  Maybe they'll learn how to use the BackgroundWorker class correctly fix it themselves.
0 Kudos
DuncanHornby
MVP Notable Contributor
Michael,

You do not specify which version of ArcMap you are using or your development environment, may be that is why no one has answered your question...

In VB .net I use this to force a refresh in my ArcMap desktop applications but this may not be your problem?

Dim App As New Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase
App.DoEvents()


Duncan
0 Kudos