Why doesn’t Visual Studio want me to add a new window to my WPF project?

Your project is probably configured as a WinForms project, or possibly as a class library. If it’s created as either of these, you are only able to add a WPF UserControl, unfortunately. Of course, there’s no technical reason for this limitation, so you can copy/paste one from another project or recreate/change your project to be … Read more

Resolving extension methods/LINQ ambiguity

This is probably one of those rare cases where it makes sense to use an extern alias. In the properties page for the reference to System.Core (i.e. under References, select System.Core, right-click and select “Properties”), change the “Aliases” value to “global,SystemCore” (or just “SystemCore” if it’s blank to start with). Then in your code, write: … Read more

What are the differences between the different types of Compare in TFS

THe difference that I have found between Latest Version Workspace Version Latest version – compares your current code file with the most current code file on TFS server. (This includes all the changes made by your fellow code monkeys and checked back in since you checked out the file). This form of comparison will show … Read more

How can I reverse code around an equal sign in Visual Studio?

Before VS2012: Copy and paste the original block of code Select it again in the place you want to switch Press Ctrl-H to get the “Replace” box up Under “Find what” put: {[a-zA-Z\.]*} = {[a-zA-Z\.]*}; Under “Replace with” put: \2 = \1; Look in: “Selection” Use: “Regular expressions” Hit Replace All With VS2012 (and presumably … Read more

Remote Debugging in Visual Studio (VS2008), Windows Forms Application

The problem that I had is that I had 2 users: mydomain\user1 mytestmachine\user1 that is not correct (according to Gregg Miskely) i needed to define a local user in my development computer, for example: mydevcomputer\debug mytestmachine\debug with the same password and run the VS2008 and the Debugging Monitor with this user:

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)