You can handle an event of the form (e.g., Activated), and from the event handler, you call your process code that runs while the form remains visible, and have that process code intermittently update the progress bar. When the process is done just call Close() on the form.
Add a public method to the form that you can call from the outside to update the progress bar while the process is running.
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2009
Supporting AutoCAD 2000 through 2009
http://www.acadxtabs.com
wrote in message news:5892633@discussion.autodesk.com...
Well, lets say I tag a command method in my class library. I also add a form to my project in VS. I configure it as a borderless form with a ProgressBar control on it. I can create an instance of the form in my command method, and then show the form. From this point, the form will halt the command method and begin running it's own methods right? I.e. I won't be able to continue with code in my command method until the form closes? Do I need to move my procedural code over to the form? If not, can the progress bar on the form be accessed by my command method, or just from within the form?