visual-studio

Visual studio forgets window settings and makes a mess

I have this problem where I open Visual Studio and the internal windows are scattered all over the place. None of them are docked; some that should be visible have become invisible and vice versa. I then have to spend ages getting the windows back where I like them. It only seems to happen with some solutions and only appeared recently....

Intellisense in .aspx for new tags added to the web.config pages/controls element

When I add an element in the controls node, the .aspx doesn't reflect it immediately. Often, down the road in the development, it will show up (when I could have used it before). Obviously Visual Studio uses a cache somewhere. How do I refresh that cache so I can get intellisense in the .aspx for properties and what not? <pages> ...

Working with javascript in VIsual Studio

To work with JS files in Visual Studio 2008, I did: Tools -> Options -> Text Editor -> File Extensions and added js extension with Script editing experience. That works pretty much as expected apart from the following things: Syntax highlighting is set-up extremely slow (after 10 seconds or so) when I open the JS file. The compilin...

Unable to open the Web site: http://.. Forbidden

Hello. Maybe somebody has already encountered with next problem: When I try to open Remove Web Site using Visual Studio 2008 TS (File -> Open -> Web Site -> Remote) located on Windows Server 2008 SP2 Enterprise x64 (IIS 7.0) I'm getting next error: I have access to the server. I added user 'Everyone' with Full Permissions for that ...

What is the best way to insert macros, snippets or code blocks into XAML view?

I would like to make a time-saving snippet to pop in blocks of XAML like this and then just change the values (like you can in code with e.g. "cw"-TAB or "foreach"-TAB): <Style x:Key="FirstCellStyle" TargetType="{x:Type Border}"> <Setter Property="BorderBrush" Value="Red"/> <Setter Property="MinWidth" Value="50"/> </Style> But...

Best way to reference an external library in multiple projects in a Visual Studio solution

We have a Visual Studio 2008 solution under VSS source control. The solution contains many class libraries, many of which need a reference to an assembly that is not part of the solution. Currently we are keeping separate copies of that assembly in each project but as the number of projects grows it gets increasingly tedious to copy in u...

How to have Checkbox as ColumnHeader of dataGridView in C#

I'm developing a window application in C# VS2005. I have a dataGridView in which the first column has Checkboxes. Now i want the Column header also to be a CheckBox which if i select all the Checkboxex in the column should get selected. How can i do this.? I referred the Code Project link But if i use that, if i click the FirstCell (n...

Unhandled Exceptions Crashing VS 2008

In the last few weeks, I've had two occasions where the debug process (vshost.exe) crashes due to an unhanded exception. The first was trying to use the Activator class to instantiate an object, I don't remember details, and today was trying to load a custom config section where I had erred in specifying the type for the section. In bo...

In visual studio 2008 all Items in toolbox are grayed out

All my controls are grayed out in the toolbox when I open a Winform Project. I have already reinstalled VS2008 and tryed all the steps indicated here, but nothing: http://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/8db82810-bffd-4d07-8e50-029d2a26f7be/ If it can be related when reinstalling VS2008 I had problems with the inst...

Prevent Visual Studio from trying to load symbols for a particular DLL

I have Visual Studio 2005 set up to use Microsoft's symbol servers. I also have UltraMon installed, which injects a hook DLL into every process. Whenever I start debugging my MFC application, VS says: "Loading symbols for C:\Program Files\UltraMon\RTSUltraMonHookX32.dll..." for anything from the blink of an eye to several tens of se...

Disable compilation of Visual Studio 2008 Project

Is there any way to tell visual studio to not include a project when building the solution without just removing the project from the solution? The situation I have is that one project in a solution requires a plugin/tool/library that I don't have installed, but another developer on our team does. So when I try to build the solution, I...

How do I print a SET command in a Visual Studio 2008 build?

I want to see all of the current environment variables during a build. I'd like to do this in the pre or post-build steps if possible because I don't want to edit the Targets file. This could print to the Output window or to a file. I've tried a number of different ways without success. I'm using Visual Studio 2008. Thanks! ...

Designer files not nesting correctly, messing up intellisense in Visual Studio.

Greetings. I've got a web site project loaded into Visual Studio 2008. The .designer files for all of my ascx controls are not nested under the control in solution explorer, and when I reference something in that control in the code behind, I don't get intellisense. I've checked the csproj xml file, and the 'compile' elements appear...

Custom Dialog not visible in Visual Studio Setup project

Hi Guys, I created a new dialog using orca, however whenever I open my setup project to add the new dialog, then its visible with the other dialogs. I added the dialog to the 0 and to the folder 1033. %ProgramFiles%\Microsoft Visual Studio 8\Common7\Tools\Deployment\VsdDialogs\0 I restarted VS but nothing seems to work. Is there anyt...

Object to Object Mapping Utility

I like to cleanly separate public and domain objects (so, nHibernate isn't going to help here) from each other which ends up forcing me to write a lot of code to map one object to another. What tools/plugins are out there to take the tedium of having to do manually do this mapping in .NET?m Whenever I Google this, it thinks I'm wanting...

WPF App crashes outside of Visual Studio

I've got a WPF app that runs perfectly fine inside VS.NET, but if I try to run it outside of VS.NET, I get a "... has encountered a problem and needs to close.." dialog. This happens in Debug and Release modes. Why is this happening? ...

Visual Studio: how do I have the debugger stop when a member variable is modified?

I have program that has a variable that should never change. However, somehow, it is being changed. Is there a way to have the debugger stop when that particular member variable is modified? ...

Can VS_VERSION_INFO be added to non-exe files?

My windows co-workers were asking me if I could modify my non-windows binary files such that when their "Properties" are examined under Windows, they could see a "Version" tab like that which would show for a Visual Studio compiled exe. Specifically, I have some gzipped binary files and was wondering if I could modify them to satisfy th...

Images not displayed in silverlight when app is run

I'm trying to display an image within a Silverlight application but the image does not display when the application is run. When creating the project within Visual Studio I chose the "Automatically generate a test page to host Silverlight at build time" option. Complete code as an example: <UserControl x:Class="SilverlightApplication3....

Visual Studio Debugger Output - Same output but different formats (like decimal output in one project, hexidecimal in another).

I'm learning some DirectX programming by re-implementing some DirectX code into different projects, I did find however that the debugger seems to output data differently between the two projects (the sample and my one). On my project if I do this: D3DSURFACE_DESC desc; pTarget->GetLevelDesc(0,&desc); int width = desc.Width; int height ...