Facilitating the spread of knowledge and innovation in professional software development



Choose your language

InfoQ Homepage News Upgrade Path - Vista Task Dialog

Upgrade Path - Vista Task Dialog


Dialogs have always been a hobgoblin in the Windows platform. Developers are constantly faced with an unacceptable choice. One option is to use the built-in dialog and pretend Ok/Cancel or Yes/No are really appropriate prompts for the user. The other is to create their own dialog from scratch, which seems like a waste of time for what should be a simple prompt.

Windows Vista addressed this with the Task Dialog. This dialog provides a framework that covers most dialog scenarios while maintaining consistency across applications. But it also introduces a new problem in that it is not backwards compatible with Windows XP.

Hedley Muscroft tackled this problem by creating a wrapper/emulator for the Task Dialog. When running on Windows XP, the application will use his hand-rolled clone which supports most of the Task Dialog functionality. On Vista, it automatically switches to the built-in dialog.

We need your feedback

How might we improve InfoQ for you

Thank you for being an InfoQ reader.

Each year, we seek feedback from our readers to help us improve InfoQ. Would you mind spending 2 minutes to share your feedback in our short survey? Your feedback will directly help us continually evolve how we support you.

Take the Survey

Rate this Article


Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p


Is your profile up-to-date? Please take a moment to review and update.

Note: If updating/changing your email, a validation request will be sent

Company name:
Company role:
Company size:
You will be sent an email to validate the new email address. This pop-up will close itself in a few moments.