visual-studio-2008

For C++ developers, is it worth to switch from VS2005 to VS2008?

We're mostly doing C++ developing in Visual Studio 2005, and some C# coding. We're considering upgrading to Visual Studio 2008, but we're wondering if it will be worth the trouble. From what I've seen, and that is not much, VS2008 doesn't have any big advantages over VS2005. So is it worth switching to VS2008 from VS2005, or is it better...

Drop Down menu properties

Does anyone know if, and how I am able to change the colour of the image strip on a simple drop down in visual studio 2008? Currently with a drop down menu i have my own collectn of items, and beside each on the drop down menu is an image strip, which is curently a grey colour with a light to dark gradient. I am eager to find out if this...

Visual Studio, per solution indentation settings

I'm working on a couple of different things and some use tabs, some use 2 spaces for indents, another users 4 spaces for indents etc. The option to set this in Visual Studio is in Tools->Options->Text Editor-><language>->Tabs Is there some way to override these settings on a per solution bases? ...

How do I refresh the toolbox in Visual Studio 2008

Working on windows forms in Visual Studio 2008 with C# So I had a windows Form Control that wasn't behaving the way I wanted. So I overloaded the Size property. Bad idea. Everything broke. Horribly. I could not add this control to a form anymore. This was slightly problematic. So I removed the offending code, and recompiled. Pr...

XAML design view broken in visual studio 2008 for silverlight 3?

...

ASP.NET User Control <%@ Register .. > directive confusion

After reading the answer here, I understand that, if I register a user control (I guess I'm really trying to use it as a custom server control) like this: <%@ Register Assembly="MyDLL" Namespace="MyDLL" TagPrefix="myDLL" %> Then only the codebehind is used, and the markup (.ascx) page is ignored. Why is this the case (it seems arbitra...

Stop debugger on current line of code being executed

So here I am trying to debug this issue where the program takes forever to run and I can't figure out where to put the breakpoint in code because there are 1 million events firing. Is there a way in visual studio to just stop on the current line of code being executed without setting a breakpoint? ...

Ways around putting a password in code

I have a bit of code that needs to run with elevated privileges (more that I want the rest of my code running at). I have my code that sets up the Impersonation working, but it requires a username, domain and password. As my code is in C#.net I know that the password can be found by anyone determined enough. Is there a way to encrypt ...

VS2008 debugger behaving strangely for web application

On my work computer, debugging in Visual Studio 2008 (SP1) seems to work somewhat different from what I'm used to. I have two problems that might or might not be related. First problem: When I'm running a web application in debug mode, and an unhandled exception occurs, I get a Yellow Screen of Death immediately. Normally my code just ...

how to register my dll in excel 2007

hi i have a created an Excel Add in(which creates a new ribbon for excel 2007) using vs2008-vsto-c# and also created a setup project... i install the setup project on other machine, then go to the installed folder, where i see all .dll files, including my project name .dll, let's say ExcelAddIn.dll please can you tell me what should i d...

How do I see the guid while debugging VB code in VS2008?

On my last machine I had created a way to see a GUID variable while debugging by hovering over it. I don't remember what it was (a visualizer?). I have a new 64 bit machine with vs2008 - is there anyway to mouseover a guid value and have it appear? What makes guid's so special that their value doesn't show like most variables? ...

Ajax ConfimButtonExtender firing before OnClientClick javascript code

Im using aspnet 3.5, vs 2008, ajax 2.0, plain old javascript (not using any javascript framework). In a asp:listview i have a button (delete) with a OnClientClick= "turnrowpink(this);" I also have an ajax 2.0 confirmbuttonextender for this button ( are you sure you want to delete this record? ) The turnrowpink function used to run be...

Type or namespace could not be found (Web Site)

I created an ASP.NET Web App project and it builds and works correctly now. However, I am trying to add this project to my website. So what I've done is I create a new Web Site from VS and then I added all of the .CS files from my Web App project to this Web Site. Even though the Web App project builds successfully, when I use this ...

Unit testing in Visual Studio 2008 Standard

I am using Visual Studio 2008 standard editing for my personal projects. This edition does not support unit testing out of the box. I have some experience with the test possibilities in Visual Studio Team System. What (free) options do I have if I want to do unit testing? Is it possible to open the test projects made with Microsoft test...

How to run/debug multiple web application projects with-in the same solution?

I have 2 web application projects. One is my asp.net MVC app and the other is for the admin related functions which is asp.net web forms Dynamic Data. My MVC app would be the main site, but I would want the webforms to work under an Admin folder of the MVC site. While debugging the application, I would like the "/admin/Default.aspx" li...

Using libxml2 in Visual Studio 2008 and Windows XP

I have a weird problem when running an application that uses GNOME's libxml2 under Visual Studio 2008 (VS2008-SP1) and Windows XP. I have two C++ projects: Project A (a library) Project B (an application that depends on Project A) Both under one VS solution. Project A is statically compiled with libxml2.lib. I've added dependencie...

Making sure C# program can run on machine with only .Net v2

I'm using VS 2005 Standard SP1, with .Net 3.5 SP1 installed on XP. The client machines only have .Net 2.0.50727 installed (also on XP). How can I tell the compiler to reject any classes or methods that are not available in .Net 2? ...

Error occuring when installing Visual studio 2008

I had already installed VS 2008 in my Laptop.When i starts installing vs_vstsweb.exe(Microsoft Visual Studio Team System 2010 Team Suite Beta 1 - ENU) after first three steps it got stopped.So i decied to uninstall full vs 2008 and uninstalled .now when i installing vs 2008 its getting error Visual studio just-in-ti...

Why is compiler not recognizing my controls?

I have an aspx page that my colleague designed for me to stick on the back end. I made a few alterations to the page, adding various controls and things - and now the compiler doesn't recognize any of the controls on the page! The Intellisense is working just fine - I can type txtName. and as I push the . all the properties of a TextBo...

Cassini exceptions on medium trust ASP.NET MVC application using Linq-to-SQL

I am receiving the following exception trying to browse a medium trust ASP.NET MVC application (using Linq-to-SQL) on Cassini 3.5.0.2: Could not load file or assembly 'Cassini, Version=3.5.0.2, Culture=neutral, PublicKeyToken=da0fefd60d522a7d' or one of its dependencies. Failed to grant permission to execute. (Exception from HRESULT: 0x...