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 6153823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:09:22+00:00 2026-05-23T20:09:22+00:00

As most MessageBoxes, the WPF MessageBox copies all of its contents (caption, text, buttons)

  • 0

As most MessageBoxes, the WPF MessageBox copies all of its contents (caption, text, buttons) to the clipboard if the user presses CTRL+C while the MessageBox is shown. So far everything is fine.

Now I would like to supply additional information, but only to the clipboard, not in the MessageBox itself. Does anyone know how I would do this?

System.Windows.MessageBox.Show(this, "The Message", "MsgBox Caption", MessageBoxButton.OK, MessageBoxImage.Information);
  • 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-23T20:09:23+00:00Added an answer on May 23, 2026 at 8:09 pm

    Sure! Just add whatever text you want to be copied to the message box!

    There’s no good reason for wanting to do this any other way. And even if there were, it’s not possible. This is not something implemented in WPF; the Win32 MessageBox API does it internally. There’s no button or switch to configure how it works.

    Others have suggested creating your own message box form and trying to simulate this behavior, but I would very much advise against that. It’s very difficult to get right all of the little things that the MessageBox API is actually doing for you behind the scenes.

    The better solution is to upgrade to the TaskDialog API and add a “More Info” button to the dialog that drops down a panel displaying additional information about the message. Users are already familiar with this style of dialog, as it’s used internally throughout current versions of the operating system. The less you deviate from your platform’s conventions, the happier your users will be.

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

Sidebar

Related Questions

In my projects (WPF) I use System.Windows.MessageBox to show the user a confirmation dialog
In Windows XP, MessageBox.Show() was a viable way of prompting the user when our
I want to show messagebox to the user, such that the user cannot refuse
Most apps have some kind of preferences or user settings that can be stored
Most of my C/C++ development involves monolithic module files and absolutely no classes whatsoever,
Most of time we represent concepts which can never be less than 0. For
Most program languages have some kind of exception handling; some languages have return codes,
Most mature C++ projects seem to have an own reflection and attribute system ,
Most of the implementations I find require a hardware instruction to do this. However
Most of the MVC samples I have seen pass an instance of the view

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.