Vadim's Weblog

Never stop learning.

Copy text from a MessageBox

Posted by Vadim on October 2, 2007

I learned how to copy text from a MessageBox about five years ago from one of my co-workers. For those of you who haven’t learned this trick yet; here it is.MessageBox

Let assume that we have a Message Box like one on the right. To copy the message all you need to do is to press Ctrl-C when the Message Box has focus.

Next open your favorite text editor like Notepad and paste it there by pressing Ctrl-V. You’ll see text similar if not identical to this one:

—————————
Caption
—————————
Some Message!!!
—————————
OK
—————————

How cool is that.

kick it on DotNetKicks.com

About these ads

9 Responses to “Copy text from a MessageBox”

  1. Pramod said

    How can I copy the text of error message of an vb.net desktop application

  2. amrelgarhy said

    Fantastic, my only question is: why you waited these 5 years, i remember now how many times i kept writing my self the error message to another editor to search with this error on Google for example, really very simple and great tip.

  3. Sid said

    Useful tip! Please don’t hold any other useful tips that long :)

  4. Aditi Manchanda said

    Helpful..
    Even i dint know it…

  5. Tarik said

    You know what ? You’re awesome man… Much Thanks from bottom of my heart :D

  6. Kangkan said

    You really delayed it badly. I could have saved lots of time otherwise.

    Thanks a ton!

    Kangkan

  7. [...] Posts Copy text from a MessageBoxGetAttribute Generics way.WPF Margin PropertyMock DataTableVista Start menu power button should Shut [...]

  8. [...] Posts Podcasts in iTunes don’t sync to iPod video.Copy text from a MessageBoxVista Start menu power button should Shut down.Copy and Paste in Visual Studio and MS SQL Server [...]

  9. Anonymous said

    really thanks …. was very useful to finish my critical job… lovely

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.

%d bloggers like this: