Some notes on software development... RSS 2.0
# Wednesday, 10 June 2009

Sometimes when I log in to a remote desktop session it appears as thought the Windows key is stuck on, so pressing keys like ‘L’ always locks the screen.

The workaround I found is this:

In the Local Resources options for the remote desktop session you should set the Apply Windows key combinations to be On the remote computer


Next log in to the remote desktop session.
Press Ctrl-Alt-End to lock the session.
Log in again and the Windows key will become unstuck.

Windows key "stuck" in Remote Desktop...

Wednesday, 10 June 2009 08:55:16 (GMT Standard Time, UTC+00:00)  #    -
# Thursday, 21 May 2009

The Pre and Post build events in Visual Studio 2008 run as a batch file so you can check the ConfigurationName variable to only do things for Release mode.
For example, to copy the built files in Release mode to C:\Temp

if $(ConfigurationName) == Release copy $(TargetPath) "C:\Temp"

From StackOverflow

Thursday, 21 May 2009 09:25:53 (GMT Standard Time, UTC+00:00)  #    -
Visual Studio
# Wednesday, 22 April 2009

Because I keep forgetting the syntax…


Wednesday, 22 April 2009 22:59:53 (GMT Standard Time, UTC+00:00)  #    -
SQL Server
# Thursday, 05 March 2009

This is old news but something I had to use recently....
Add a .cs file to your project, any filename is fine but I called mine ExtensionAttribute.cs.
Add the following code...


Wherever you declare your extension methods you need to include 'using System.Runtime.CompilerServices' to the top.

Note:- You must be using Visual Studio 2008 for this to work.

The Moth - Using Extension Methods in Fx 2.0 Projects
CodeThinked - Using Extension Methods in .net 2.0

Thursday, 05 March 2009 10:12:41 (GMT Standard Time, UTC+00:00)  #    -

Sign In
Total Posts: 116
This Year: 0
This Month: 0
This Week: 0
Comments: 36
About the author/Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2019
Hadrian Phillips

All Content © 2019, Hadrian Phillips
DasBlog theme 'Business' created by Christoph De Baene (delarou)