visual-studio-2008

Is there a way to get a better browser for the Visual Studio (2008) help?

The help browser for Visual Studio kinda sucks as far as modern tabbed browsing goes, e.g. double-click to open a document in a new tab doesn't work. Is there a way to get a better browser for the VS help? ...

VS.NET - Multiple Find All References Result Windows?

Visual Studio has a "Find All References" tool that is great in navigating the codebase to find out where a function is called or where a variable is used. When navigating a large code base, I tend to do find all references multiple times to find the top level of where a function is called. Imagine we have the following: A1() calls B1(...

Use of activeX object on non-MFC applications

Hi all, I'd like to use an activeX component in Visual C++. The ocx file has been registered and I can insert the component in a dialog of the resource editor. But how I get a wrapper class to use the activeX object now?? On MFC applications, the editor creates a wrapper class for the ocx, but I'm not using MFC... Thanks! Henry ...

EnvironmentEvent macro doesn't complete

I'm working in Visual Studio 2008 and I would like for Edit > Outlining > Collapse to Definitions to be run whenever I open a file. It would be nice if, after that, all regions were expanded. I tried the code that Kyralessa offered in a comment on The Problem with Code Folding, and that works very nicely as a macro that I have to run m...

VS 2008 C++ how to make a project without .net dependency

I am writing a plain vanilla c++ console app using VS 2008. When I create the project, the IDE gives me a choice of .net versions. There is no option for 'none'. When I look at the project properties page, the Targeted Framework has whatever value I chose and is greyed out. When I try and run the app on a windows machine without the clr...

Visual Studio 2008 Professional Build Process

I would like to accomplish two things during my build process: Run unit tests - I have a Test Project with my unit tests. I would like to run all of these tests on build and receive a notification if the build fails validation. Merge web.config files - I have 3 different environments with configuration details specific to each. I wou...

Suppressing command-line from Visual Studio (05/08) output

I'm trying to suppress the command-line from the output in Visual Studio - my plan is to add /nologo to the command-line - but I can't find a place in the application settings or in the IDE settings to do this. I'm probably missing something obvious, but would really appreciate any enlightenment. Edit: What is causing me the problem ca...

Change Visual Studio 2008 HTML indentation style

Visual Studio 2008 insists on indenting HTML like this: <h1> title</h1> <h2> subtitle</h2> where for me, this is much nicer: <h1>title</h1> <h2>subtitle</h2> Is there any way to tell Visual Studio 2008 to use the later indentation style when doing auto-formating? ...

how to set CPU affinity of a program?

Hello everyone, I have a program written in C#, I am using VSTS 2008 + .Net 3.5 + Windows Vista Enterprise x86 to develop a Windows Forms application. My current computer is dual-core CPU, I want to set CPU affinity of my program to run on a specific CPU and free another CPU to do some other job. Any ideas how to do this? Either throug...

How do i change the intellisense settings in VS2008?

What the title says. Is there a way to change intellisense settings (intellisense box size and things like that)? ...

Getting started with Visual C++

Hi, I'm trying to get started with Visual C++ in Visual Studio 2008. When I press the play button (start debugging), a console opens, but then immediately closes. How do I make this window stay open so that I can see my output? ...

deep zoom is not displayed

Hello everyone, I am using VSTS 2008 + C# + .Net 3.5 + Windows Vista Enterprise x86. I have used Silverlight Deep Zoom composer tool to export my composed images into Siverlight type. Everything is previewed fine after export successful message (I select browse from browser). But when I click the Test.html in the exported project to sh...

Using SQL Express 2008 with VS2008?

I have the following installed: VS 2008 SP 1 ASP.NET MVC 1.0 SQL Express 2008 SQL Management Studio 2008 (for connecting to SQL2008 Server) When I right click on the App_Data Directory and click "Add New Item", if I choose SQL Server Database and name the .MDB file, I get an error: Connections to SQL Server Files (*.mdf) requir...

Siverlight development setup issue

Hello everyone, If I am using Windows Vista x86 Enterprise as development environment, and I have installed VSTS 2008 + SP1, .Net 3.5 and I use C#. Any additional SDK/components from Microsoft do you suggest I to setup which are must required? Too many terms called Siverlight SDK/Plug-in which makes myself headache. Do not know which o...

Visual Studio 2008 crashes when displaying XAML view. How to get more information?

I am developing a Silverlight app using VS2008 Express. I have just implemented a new user control and have added it to a Grid. When I try to open a XAML view which contains this control, VS crashes and restarts. Where can I look for more information? Is there an event log in VS? Update I found my problem which was a circular referen...

Building objects from Google Maps geocode API HttpWebResponse

I'm using the Google Maps API to geocode some addresses. What is the easiest way to build objects using the childnodes of <Placemark> ? I may also have multiple placemarks returned in the same response depending on the level of detail provided in the request. I would like to build multiple objects in those cases and those objects will be...

WriteableBitmap unavailable?

I've discovered what may be the perfect answer to a question on buffered drawing, but for some reason my version of VS2008 doesn't seem to have a WriteableBitmap? I've tried including the relevent namespaces as per the documentation: using namespace System::Windows::Media; using namespace System::Windows::Media::Imaging; But that just...

Stop VS from automatically opening the folder for the active item

Hi guys Just wondering if anyone knows how to stop VS from automatically opening the folder for the active item. On my work computer it does this but my install doesn't, but I can't find the setting that I need to change. Cheers Anthony ...

web application projects v.s. web site projects

Hello everyone, I am reading from the following link, http://reddnet.net/code/asp-net-web-site-vs-web-application-project-part-2/ My two confusions, What is the so-called issue "No control over your namespaces" cons from a web site project? Could anyone show me a sample to illustrate this issue please? What is the so-called issue "I...

Application.Exit

Hello everyone, I am using VSTS 2008 + .Net 3.5 + C# to develop Windows Forms application. My confusion is, seems Application.Exit does not force application to terminate? If not, which method should I call to make application terminate? EDIT 1: Normally the main method is like this, how to exit Main function gracefully without callin...