Showing posts with label Windows. Show all posts
Showing posts with label Windows. Show all posts

Monday, March 20, 2017

C# trick to launch runtime debugger

I have used this trick quite successfully many times to launch a debugger from a running application. It works really well for things that are hard to debug.  Things like DLLs that might be running under a different application, or display tasks that happen periodically and launching the application in the debugger might change the way the application runs and not cause the bug you are looking for.  It works by basically crashing the application with an exception which brings up the dialog to allow you to continue or debug.  You can have visual studio already loaded with the application and choose that instance of VS from the list.  It is a one liner that you add to your code.

So simple. In your C# code, simply add this line.

Debugger.Launch();

You can do this in any language, but I'm using c# at the moment so showing that. This is very handy.

Monday, August 3, 2015

Windows 10 - IE Work around

I tried out Windows 10 at the Microsoft store a few days ago and really loved it so I installed it first chance I got time over the weekend.  I do really like the interface fixes.  I've mostly liked Windows 8 and have gotten used to the split interfaces for metro (now tablet) applications and desktop.  I've gotten used to the various touch screen gestures on my Surface Pro 3 and absolutely love my surface. Probably one of the best machines I have ever owned, but that's not saying much because usually I buy two year old machines for cheap, max out the ram and put in an SSD and limp along for a few more years.  The surface was a gift, one of the best ever, but not something I would have bought for myself.

Anyway, after the Windows 10 install everything was working well except there is one site I use a lot that requires IE and an Active X control.  The windows 10 browser is called Edge (even though the icon, a big "e" looks exactly like IE) and it will not run the plugin.  I've been trying to get the plugin to work to no avail.  I though IE had been uninstalled, but just went to try and install it and sure enough it's still there.  The site I need still works in IE so all is well again and I'm really liking the new interface.

The biggest improvement I've seen in Windows 10 is a much closer integration between the (metro) tablet interface and the desktop interface.  They mostly just look like they are one interface (more desktop than metro) and it works much more smoothly.   Well worth the upgrade and a huge improvement.

If you are looking for IE on windows 10, just search for "Internet Explorer" and it's the top hit.  Sometimes the top of the menu looked like a "header" item to me and I was ignoring it.  The top part that looks like a header is actually the closest item you are looking for.


Wednesday, November 26, 2014

Surface Pro3 Print Screen Button

I usually use SnagIt to great effect and it is a primary tool for me.  I haven't installed it on my Surface yet and I was trying to figure out how to do a screen capture without it.  There isn't a Print Screen button.  The trick is pretty easy though. Press Fn-Space bar to capture the screen and Fn-Alt-Space to capture the active window.

http://answers.microsoft.com/en-us/surface/forum/surfpro-surfusingpro/print-screen/1aa98224-dacb-4770-863e-7e1fc77f9ac1