|
Works on 99% of messageboxes.Shift-Ctrl-C to copy messageboxes/errors ...
Example from a messagebox in IE.
---------------------------
Message from webpage
---------------------------
You must spread some Reputation around before giving it to ....
---------------------------
OK
---------------------------
That was an alert in IE ...
|
|
|
|
|
And why is it always in the middle of the screen?
Why does it expand to fit it's content, even if that is too big for the screen?
These are reasons I wrote this tip: ErrorMessageBox: an improved MessageBox for error reports[^] - so at least my errors could be copy'n'pasted to an email...
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
Handy piece of code - I may take it a step or two further so I can optionally set the size of the Form, have more than 3 buttons etc when calling Show.
|
|
|
|
|
You can try debugging it will get you the error text
|
|
|
|
|
Interestingly, I didn't write all of the programs I run
Christian Graus
My new article series is all about SQL !!!
|
|
|
|
|
You beat me to the punch with that answer.
|
|
|
|
|
Who did
|
|
|
|
|
Actually, you're wrong on that one.
on ANY native windows dialog (does not work if the developer used a window with a label on it, it must be a dialog) you can just select the dialog (i.e.: by clicking on the title bar) and then press ctrl+c, that will copy the entire window text (including title and buttons). you can then paste it on notepad and select just the bit you want.
the only problem is that it's becoming each time rarer to find native windows dialogs, because developers think they can do better, but most of the windows error messages still are shown on those dialogs.
|
|
|
|
|
I tried that, on a standard windows error dialog, before posting my post.
Christian Graus
My new article series is all about SQL !!!
|
|
|
|
|
If it was on explorer, then it's not a standard windows error dialog.
I was so sad when i needed to copy something from it and couldn't
Applications i know that use the standard dialogs are:
visual studio (some places, mainly when he gives you an obvious BadDeveloperException),
IE,
notepad++
general error messages from windows himself can also be copied, but it's becoming less common, as more people move to directX enabled windows.
|
|
|
|
|
I would also like to thank whoever broke Ctrl+C.
In the before the before, I could highlight text, Alt+Tab, then Ctrl+V. Now, the vast majority I am forced to right-click, select copy in order to ensure that I actually have the item in question in the clipboard. Nearly as annoying, I think .
|
|
|
|
|
|
Interesting. I think there's things they are not considering. For example, Facebook has become a big part of many people's social lives. I can't see it going away without being replaced by something, and the biggest hurdle to any new alternative, is that it would need to work in such a way, that everyone who is on Facebook, was automatically ON it. Google+ was very nice, but why use it when your friends are not on there ?
Christian Graus
My new article series is all about SQL !!!
|
|
|
|
|
As a non participant I don't have a great investment in the outcome. I think however there is a very predictable cycle to all tech products. What will replace it - who knows. It did itself arrive as the fittest species of many attempting to fill a niche which few realised existed.
The next generation will probably appear in the same way.
Peter Wasser
Art is making something out of nothing and selling it.
Frank Zappa
|
|
|
|
|
Christian Graus wrote: Interesting. I think there's things they are not considering. For example, Facebook has become a big part of many people's social lives. I can't see it going away without being replaced by something, and the biggest hurdle to any new alternative, is that it would need to work in such a way, that everyone who is on Facebook, was automatically ON it. Google+ was very nice, but why use it when your friends are not on there ?
I agree or so revolutionary that everyone flocks to it int droves.
|
|
|
|
|
OR something happens that makes people abandon FB in droves.
Christian Graus
My new article series is all about SQL !!!
|
|
|
|
|
Perhaps a Common Sense virus spreads throughout the world...
|
|
|
|
|
That one is well and truly eradicated.
Peter Wasser
Art is making something out of nothing and selling it.
Frank Zappa
|
|
|
|
|
Christian Graus wrote: but why use it when your friends are not on there ?
If you don't have any then it's the perfect place for Norman to hang out.
If there is one thing more dangerous than getting between a bear and her cubs it's getting between my wife and her chocolate.
|
|
|
|
|
Not before time.
If there is one thing more dangerous than getting between a bear and her cubs it's getting between my wife and her chocolate.
|
|
|
|
|
I know I'm late to this game, but ..... WPF WTF?
An impenetrable object model...
A million-and-one different ways to do everything...
Brings all the horrors of CSS to application development...
I'm waiting to see some advantage...
Thank-you! 
|
|
|
|
|
If you have a copy of Visual Studio 2010 handy, you could check out MVVM in the Box and the accompanying video, helps WPF go down a little easier!
Well fads they come and fads they go.
And God I love that rock and roll!
Well the point was fast but it was too blunt to miss.
Life handed us a paycheck, we said, "We worked harder than this!"
|
|
|
|
|
Thanks for this - looks like it might be a good primer. Just have to find time to look at it!
|
|
|
|
|
It definitely takes some getting used to. Pretty steep learning curve.
|
|
|
|
|
I also started late, thinking the same things you have above.
But, once you get used to how it all works, and realize the power behind doing it, things become a lot easier and your UI's a lot cooler 
|
|
|
|