Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 851277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T07:24:14+00:00 2026-05-15T07:24:14+00:00

stackoverflow just works faster :) I’m using the Windows® API Code Pack for Microsoft®

  • 0

stackoverflow just works faster 🙂
I’m using the Windows® API Code Pack for Microsoft® .NET Framework to access Windows 7 API and I want to change my old MessageBox to TaskDialog.
One thing I cannot find is the default button of the dialog. Is there a way to set it? what about a work around?

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T07:24:15+00:00Added an answer on May 15, 2026 at 7:24 am

    There is a Default property on a control under the taskbased dialog you can set to true. From the sample (Samples\TaskDialogDemo\CS\TaskDialogDemo) that ships with it:

    TaskDialog tdEnableDisable = new TaskDialog();
    tdEnableDisable.Cancelable = true;
    tdEnableDisable.Caption = "Enable/Disable Sample";
    tdEnableDisable.InstructionText = "Click on the buttons to enable or disable the radiobutton.";
    
    enableButton = new TaskDialogButton("enableButton", "Enable");
    enableButton.Default = true;
    enableButton.Click += new EventHandler(enableButton_Click);
    

    If you run the demo, click Enable/Disable sample and then press Enter a few times you will see that the two buttons take turns being the default.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to say hello to the stackoverflow community. I've just started using knockout
This is my first question on stackoverflow. I just wonder why my getJSON code
First, I just want to say that the stackoverflow community is empowering to say
This is my first here in Stackoverflow. So I just want to ask question
In trying to use the stackoverflow api with ajax and jquery and I just
Just like stackoverflow, there is a many-to-many relationship between Question and Tag. After running
Just as on StackOverflow, in my app a User can write Questions and can
I've just posted a question on stackoverflow about a hide/show issue I was having
I just finished looking at this question: https://stackoverflow.com/questions/753122/which-cloud-computing-platform-should-i-choose But, I am not certain what
I've looked around StackOverflow and other places (including Git documentation) and just cannot get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.