visual-studio

Possible To Print 4-Up From Visual Studio?

I got nowhere Googling for this question so if this is a "Google Is Your Friend (GIYF)" question, I apologize in advance. I always print source code duplex to save paper. Is there an add-in for VS (2003) which allows you to print two pages on one side of the paper so I can print 4 pages on one sheet? I think this is called 4-Up prin...

Can I generate values for a custom parameter such as a timstamp for a Visual Studio Item Template?

I would like to include the current timestamp as part of my Visual Studio Item Template (the timestamp of when the file is created by the user). Is this possible? ...

VS Builtin web server sends images as octet-stream

I am debugging an ASP.NET website which has a lot of javascripts and images using Visual Studio 2008 development web server. One of the many scripts try to create an <img> tag on the fly and supply it with a proper src attribute. However, none of the images are loaded and instead alt text are displayed in Firefox, IE and Opera. Digging...

Visual Studio Content Installer (VS2008) for .NET Compact Framework v3.5

I have two questions: Can I use Visual Studio Content Installer for Visual Studio 2008 to install .NET Compact Framework custom controls in Toolbox? If answer to question 1 is "Yes", what will be FileContentType value in .vscontent file for control.asmmeta.dll file and control.designer.dll? Do I have to be careful about any other infor...

ASP.NET, Visual Studio, C# and Javascript

I have a simple ASPX page based of a master page. On the ASPX page, I have two drop downs and a button. When pressing the button, I want to execute some javascript. To do this, I have used the Button's attribute collection (Add("onclick", script)). My script looks like this: string script = "return confirm ('You have selected' + docume...

What Visual Studio files should be ignored by subversion to eliminate or conflicts?

I am supporting a number of .Net developers who are using Subversion to version control their work, but we have been running into a number of issues that seem to revolve around the additional files that Visual Studio uses to manage projects, do debuging, etc. Specifically, it seems that these files are causing conflicts due to the fact t...

Working with Visual Studios C++ manifest files

I have written some code that makes use of an open source library to do some of the heavy lifting. This work was done in linux, with unit tests and cmake to help with porting it to windows. There is a requirement to have it run on both platforms. I like Linux and I like cmake and I like that I can get visual studios files automatically ...

'Start Debugging' takes forever in VisualStudio 2005

I have a large project that has > 1000 files. When I press the green 'Play' button to start debugging, once everything is built, it can take up to 5 minutes for the app to start running. It looks like Visual Studio is loading and unloading various DLLs, but it also just sits there occasionally doing nothing. Running from the command li...

Slow debugging issue in Visual Studio

Hello everyone, In my Visual Studio, even I just wrote a single line of return in a C# console application, it will take me a minute after pressing F5 to execute the actual code (I mean the time it takes to stop on the single return statement after pressing F5 -- I set a breakpoint on return statement in Main function). I am wondering w...

how make MDI (C# VS 2008 ) child - sticky windows?

Hi, Is there’s a way to make MDI (C# VS 2008 ) child forms sticky one to the other while moved or resized? I'v seen code project but it is only for top level. thanks, Gilvini ...

DebuggerDisplay Attribute does not work

This is a C++/CLI WinForms project targeting the .NET 2.0 framework. I am using Visual Studio 2008. How do I get it to work? EDIT: Code snippet [Serializable] [DebuggerDisplayAttribute(L"ID={EmployeeID}")] public ref class Employee { [ReadOnly(true)] int nID; property int EmployeeID { int get() { ...

Writing two dimensional array to file and reading two dimensional array from file using Visual C++

Hello, I'm new in C++.I made up 680x680 two dimensional array.And I tried to write it to txt file.Unfortunately,I can't write two dimensional array along its dimensions regularly. Also I want to read two dimensional array from txt file.My code is below.Could you help me ? /*Declaration 680 *680 multidimensional array*/ array< array< do...

VS get returned value in C# code ?

When debugging C/C++ (unmanaged?) code in VS, after stepping out of a function, you can see the returned value in the 'autos' window: However, this does not work for C# code: Any suggestion on how to get the return value other than cluttering the code with temporary variables? ...

MSBuild on Visual Studio Command Line

I am trying to call msbuild on a .sln with a post build build-event something like: xcopy "$(TargetDir)$(TargetName)*" "C:\TEST\" /Y. Can I do that in just one line??? Basically I want to have something like: msbuild Solution.sln xcopy "$(TargetDir)$(TargetName)" "C:\TEST\" How can I do that? ...

how to work with multiple coincident panel controls in VS 2008 windows forms

in VS 2008, I am attempting to design a windows form that is similar to a set of property pages but uses a TreeView to select the page rather than a TabControl. An example of this design is the Options dialog in VS 2008 itself. There are two reasons I want to do this: 1. I prefer the look and feel; 2. I want to give users the ability...

Maintainability Index

I have come across the recommended values for a Maintainability Index (MI) as follows: 85 and more: good maintainability 65-85: moderate maintainability 65 and below: difficult to maintain with really bad pieces of code (big, uncommented, unstructured) the MI value can be even negative Are these values are dependent on technology? ...

Where can one acquire the Visual J# Merge Module for use with Visual Studio 2008?

I've inherited an application which depends on a third-party library, which in turn depends on Visual J#.NET. The application was previously being developed on Visual Studio 2005, and I've got it building mostly successfully on VS2008. Amongst other components, it included a Deployment Project which built a couple of executables (plus...

Good techniques to use Makefiles in VisualStudio?

I know the ideal way to build projects is without requiring IDE based project files, since it theoretically causes all sort of trouble with automation and what not. But I've yet to work on a project that compiles on Windows that doesn't depend on the VisualStudio project (Ok, obviously some Open Source stuff gets done with Cygwin, but I'...

Eclipse's tab double click on Visual Studio?

On Eclipse, whenever I double click a tab, it fills the workspace (by hiding all other views like project tree, console, etc). Is there any do this on Visual Studio? Note: i'm not looking for full screen, just want a way to declutter the workspace but still have access to menus. ...

Visual Studio Task Panel

Does anyone know how to prevent task panes from expanding unless you click on them? Sometimes I hover over one, and it takes a bit to load breaking my concentration. Thanks! EDIT: Now that I've had a few days to reflect on my question, I realize the answer is to close it. Let me provide an example. When you are in Word, and you want...