How can I display a progress dialog from within a Visual Studio 2008 IDE macro?
I’m a C++ programmer who is trying to write some IDE macros to automate
various things that I do all the time—such as inserting blocks of text,
reformatting sections of code, etc.. The macro that I’m developing works
fine, but it can take a long time to complete, so I’d like to display a
dialog while the macro is running to show the progress of the operation. The
IDE does display a spinning icon on the status bar whenever a macro is
running, but I want something that is a bit more informative. And I’d like to
be able to cancel the remainder of the operation at any time.
I have limited VB experience, so it’s probably best to assume that I know
next to nothing.
Can someone show me how to do this? Maybe there’s a sample somewhere that I
can modify to suit my needs? Even some code to display a modeless dialog
would help me get started.
Archived from group: microsoft>public>vb>general>discussion