visual-studio-2010

How do I use the additional Silverlight Toolkit controls?

I've got VS2010 installed, I've downloaded the Windows Phone add-in and the Silverlight Toolkit from CodePlex, but I cannot work out for the life of me how to actually use the controls in a Windows Phone 7 application... How do I add the controls into the toolbox, or link them so that the XAML doesn't give me errors all the time? For i...

SQL Server unique constraint problem

How to create a unique constraint on a varchar(max) field in visual studio, visually. the problem is when i try it: manage indexes and keys > add > columns I can only chose the bigint columns, but not any of the varchar(max) ones. Do I maybe have to use check constraints? If yes, what to put in the expression? Thnx for the info ...

Visual Studio 2010 command to zip up entire solution?

Is there an add-in, macro, extension, or command to let me right-click on a project or solution in my VS2010 Solution Explorer and have it pack it all up into a zip file? Something like ZipStudio, except I need it for 2010: ...

Alternative to 'publish' in visual studio

I am working on an app with configurable files. When i publish i notice 1) I get an installer which i dont think i can opt out of 2) I dont know where the install path is and if i change the config files the application will not install (maybe not run either if i edit them in the right place?) So what alternatives do i have? I would lik...

.NET prerequisites, 3.5sp1 but no 3.5? problem with 4.0?

The title is confusing but the problem is not so much. I made a prerequisite with the default 3.5sp1 and windows installer 3.1. I ran it in my VM and to my surprise it asked me to install .NET. I checked the version and i have .NET 2 sp1, 3 sp1, 3.5, and two variants of 4.0 (client and extended beta). I looked in prerequisites and the...

Change default properties for .resx files created with Visual Studio 2010

When creating a new .resx file anywhere in my solution, I would like the following properties to be other than the default: Copy to Output Directory: Copy if newer Custom Tool namespace: Booking.Resources Access Modifier: public Is there any way I can change the default Visual Studio behavior on creation of these files, so I don't ha...

Visual Studio 2010 C# .NET textbox restrictions

if user entered "!" "?" "," in textbox and press button, this person see ERROR message in label. how can make that? and what is the code? ...

Error when creating ASP.NET website in Visual Studio

I'm trying to learn ASP.NET. I open Visual Studio (this happens in both 2008 and 2010) and creating a new ASP.NET website using .NET 3.5. When I attempt to run the website, a FireFox page opens up and tells me that it can't establish a connection to the server (localhost:####). There's no helpful error message, just "cannot connect." ...

How do I stop folders being namespace providers by default in VS 2010?

The subject kind of says it all. ...

Visual Studio 2010 'Assign to local variable' function?

I'm in love with the function in Eclipse "assign to field". Basically, when I have getString(); and I type ctrl-2, Eclipse converts this into String getString = getString(); Is this possible in VS 2010? ...

VS2010: Why do my custom Toolbox tabs and contained controls keep disappearing?

This is how I expected the toolbox to work: Let's say I add a custom Tab to the Toolbox called "Ajaxtoolkit." To add controls to the new tab, I right mouse click and select "Choose Items" and browse to a file, Ajaxtoolkit.dll, that is of a particular version number. I would expect that when I save and reopen the solution, that the Ajax...

Can't edit and continue when using Visual Studio 2010 on a 64 bit machine, app targets x86

I'm having some problems with Edit and Continue when using Visual Studio 2010 on a Windows 7 64 bit machine. I've ensured the following Edit and Continue is enabled under Tools>Options>Debugging>Edit and Continue My solution platform is set to x86 My solution configuration is set to Debug All my projects are building for Debug and x86 ...

Reset VS2010 Project Templates?

I installed Blend 4 RC recently but strangely it deleted some of my VS2010 projects templates, including the most important ones being Silverlight User Control and Silverlight Application. Does anybody know how to get back these templates or tell VS2010 to reset all templates? A bit frustrating, I'm having to create projects on my lapt...

T4 trouble compiling transformation

I can't figure this one out. Why doesn't T4 locate the IEnumerable type? I'm using Visual Studio 2010. And I just hope someone knows why? <#@ template debug="true" hostspecific="false" language="C#" #> <#@ assembly name="System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" #> <#@ import namespace="System" #> ...

Upgrading from Visual Studio 2005 Team Suite to Visual Studio 2010 Ultimate

What are the steps I should do and everything I should consider when upgrading from Visual Studio 2005 Team Suite to Visual Studio 2010 Ultimate? Where can things go wrong? Consider the fact I'm using TFS 2008 and have Continuous Integration and Nightly Builds on build machines. ...

How to add my custom WPF control to the ToolBox by using the WPF ToolBox Control template

I have a custom control packed as myControl.dll. How to install it in VS2010 by using the WPF ToolBox Control template? I do not want to use the "Choose Toolbox..." or "Drag and Drop" techniques. ...

Cannot add App_Data SQL Server database

Hello, Using Visual Studio 2010 10.0.20319.1 RTMRel and SQL Server Express 10.50.1600.1 I'm trying to add a new SQL Server Database .mdf, however, I receive the following error: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. ...

Visual Studio 2010 Service Pack 1

Does anybody knows when will Microsoft release (in their plans or in roadmaps) a 'service pack' for Visual Studio 2010. I know it's too early to ask, but my client requires a stable release of VS 2010 + .Net 4.0 before going into development of his project. ...

VS 2010 Upper case highlighted text using keyboard short cut?

I have a highlighted string, I would like to toggle the case of for example Upper / Lower. Is this possible using a keyboard shortcut in vs 2010? ...

WPF application template not available in Visual Studio 2010

I have just installed Visual Studio 2010. when I attempt to create a new project in c#, there is no option for a WPF application. There is for Visual Basic. The WPFApplicaton.zip flie does exist in C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplates\CSharp\Windows\1033 What could be wrong here? ...