visual-studio-2010

Silverlight 4 Equivalent to WPF "x:static"

I'm working on a project that is based on an old project someone started and didn't finish. I was trying to use as much of their code as I could, so in doing so I ran into some tweaking issues. Namely, when I put some of the old xaml in the new project there were some errors that were thrown regarding the "x:static" property and "Dyna...

Sys.Application.add_load in .NET 2 vs .NET 4

I converted a .NET 2.0 application in VS 2005 to a .NET 4.0 application in VS 2010 and am experiencing an issue registering a script to run after the page has been fully loaded. I am using the following vb.net code to register a javascript function. This vb.net code is called in the OnPreRender of a custom server control that only gets...

VS2010 remote debugging with default transport problem

Hi, I need to do remote debugging of managed code (.NET) on a server hosted on a different network. Neither the client or server is on a domain so i have to use the public ip of the server. I'm trying to use Visual Studio -> Attach to process -> default transport with the qualifier [email protected] but it's not working. I get the error...

WCF Restful services in VS 2010?

Hi There, Does anyone know of a good screencast, walkthrough or tutorial for creating WCF Restful services in VS 2010? I found the starter kit, but this appears to be for .net 3.5 / VS 2008.?? Then i found via the extension gallery a WCF Restful services template for VS 2010... THis appears to be what i need, but i have no idea of whe...

TFS 2008 to Build VS 2010 Projects - what version of VS should go on the TFS Server?

I need to get VS 2010 projects that are using Visual Studio Tests building on a TFS 2008 build server. I didn't want to have to install VS 2010 but am now willing to do so after trying the advice one person posted here: http://www.richard-banks.org/2009/11/how-to-build-vs2010-solutions-using.html and some other posts I've found bu...

List of available VS2010 hotfixes

With the regularity of VS2010 crashes increasing as I use it, I was looking for a list of hotfixes. This blog post says there is no official list, so let's make one (RTM only please). Or is this page sufficient instead: https://connect.microsoft.com/VisualStudio/Downloads ? Insufficient Memory Error on Cut or Copy https://connect.mi...

Visual Studio 2010: How Can I remap F2 to Rename File rather than Open Object Browser

In Visual Studio 2010 Solution Explorer tree view, how can I remap the F2 key to Rename the Selected File rather than open Object Browser? ...

Why does intellisense quit working

I'm working in an ASPX page where intellisense is not functioning. The page compiles and functions correctly - but if I intentionally create a syntax error, instead of placing the message in-line it's being displayed in the top line - the <%@ Page Title="Stuff" Language="C#"...%> In the same project, but a different page, everything wor...

Visual Studio 2010 SDK Scan Source files in project

I'm working with the 2010 SDK and I am trying to figure out how to tie into VS in someway that I have a background process running that is constantly analyzing .CS files in the current project and adding them to a dictionary so I can show some graphical cues in the editor of a custom text document that I have. I have been doing quite a ...

Problem creating an Excel 2007 Workbook project in VS2010

I'm trying to create a new Excel workbook project in Visual Studio 2010 but it's not working. I get the error "Cannot open the workbook in the designer, because Visual Studio cannot find a required object for Microsoft Office Excel. To fix the problem, repair your installation of Office." I've repaired both Office and VS2010, uninstalle...

Visual Web Developer Express 2010 doesn't save changes made to contents of Ajax Toolkit Tab Container in design view

When editing the contents of an AJAX Control Toolkit Tab Container in VWD Express 2010: Sometimes the changes are saved ok, sometimes extremely slowly & sometimes not at all. A "page changed" asterisk in the name tab of the page appears briefly, but then disappears again. Does anyone know anything about this, please? Thanks! Vlad ...

Is there a way to have the close window button (X) call a method before actually closing the window?

In a windows form project in C#/.net/Visual Studio 2010, if someone hits the close window button, I want to disable some other things in the program as a consequence. Is there a method call for hitting "X" that I can extend? ...

Microsoft Visual Studio 2010 Academic Edition

I have a copy of ms Microsoft Visual Studio 2010 through my university MSDN program. Can I use it to create commercial programs? ...

Modify the WPF Calendar control in Visual Studio 2010

I'm just starting out with WPF + C# in Visual Studio 2010. I've added the standard calendar control to my project, and I want to disable/remove the month left & right buttons. I couldn't achieve this using the properties of the control, so I did a bit of research - it sounds like I'll have to replace the standard template with a modifi...

Changing folder/project icons in Visual Studio 2010

Hello, Is there a way to change folders and project icons in the Solution Explorer of Visual Studio 2010 ? Example, C# projects have that little C# icon, that is the one that I would like to change - Thanks ...

Debugging code that's being tested in Visual Studio 2010

I am having some problems with a given test, that I'd like to debug the code that is being tested, while the test runs. Is this possible? If yes, how can I just debug this one test? I can only see options for running or the whole solution, or the whole set of tests in the current context or all impacted tests. I'd like to just run thi...

default.aspx.cs in VS2010

I recently installed Visual Studio 2010 Ultimate. When I add a control to the default.aspx page, the corresponding C# code isn't added to the default.aspx.cs page. Is there any way to enable this, like it was in VS 2008, or will I have to manually add the code for each control? ...

My program doesn't work on a friend's machine

Hello! I wrote a game in C++ + SFML using Visual Studio 2010 Express. I packed in all libraries like msvcr100.dll, opengl32.dll etc. but some pepole can run my game, and others can't :/ I don't know why, because I added everything that is necessary to run the game. People that can't run game get messages like : "The procedure entry point...

Displaying data in DataGridView without HorizontalScroll

Hello everyone, My problem is data that load at startup in a DataGridView and a cell containing large data that I want to display on multiple lines instead of horizontalScroll ...

Problem with std::make_tuple in C++0x.

Tying to compile the following program with Visual Studio 10, I get lot of compile errors: #include "stdafx.h" #include <tuple> #include <string> #include <map> #include <iostream> int _tmain(int argc, _TCHAR* argv[]) { typedef std::tuple<std::string, std::string> key_t; typedef std::map<key_t, std::string> map_t; map_t t...