Need help with VB progress dialog

M

Mick

How can I display a progress dialog from within a Visual Studio 2008 IDE
macro written in VB?

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 sample code to display a modeless
dialog
would help me get started.
 
C

Cor Ligthert[MVP]

Mick,

For inserting blocks of text are the snippets, reformating is automaticly
done all the time in Visual Basic (it is one of the benefits that most of us
like instead of being all the time busy with reformatng).

Would you not first try it, before you start builing macros which are
already (probably better) build in?

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top