visual-studio-2008

Compile only the current project without checking referenced projects

When I hit Compile Project (SHIFT+F6) in Visual Studio 2008, Visual Studio always seems to check the referenced projects/libraries first. It is understandable, because they have to be compiled first, but currently I happen to spend most of my time working actively only with the top level project (it's an ASP.NET application referencing a...

Document Outline VS2008 for classes

Is there a sort of class outline window in VS2008? I have checked the document outline, but it's not for classes. Then there's the class view window, but it shows you everything. I'm searching for something similar like Outline in Eclipse where you can see all fields, properties, methods of a class. ...

Keyboard shortcut for add reference to project in Visual Studio?

Hi, What it the keyboard shortcut for adding a reference to a project in Visual Studio 2008? Thanks ...

Visual Studio: Add same project or reference to different solutions

Hello, I am trying to set up my Visual Studio projects. I have a generic project (say SharedProj) that has all the constants, common classes. SharedProj will be referenced by two other solutions (say SolnA, SolnB), but potential more in the future. There are two ways I can think of: I can add SharedProj to both SolnA and SolnB. Or I c...

Unit testing: how to access a text file?

I'm using Visual Studio 2008 with Microsoft test tools. I need to access a text file from within the unit test. I've already conf the file to 'build action=content' and 'copy to output directory=copy always' but the file is not being copied to the output dir, which according to System.Environment.CurrentDirectory is '{project_path}\Tes...

message box not working

I have an exception where i need to sheo a messagebox my messagebox works on localhost but not on the server catch (Exception) { MessageBox.Show("Machine Cannot Be Deleted", "Delete from other Places first", MessageBoxButtons.OK, MessageBoxIcon.Error); } how can i make this work... thanks is there anothe...

Firebird connection problem after converting project from VS2005 to VS2008!

Hello, I have a queer problem. I was working on a project with firebird 1.5.6 .NET provider and Visual Studio 2005. Everything worked fine. Then I converted the project to a VS2008 project. Now I have the problem that when I'm trying connecting to firebird database I get the an error: Index was out of range. Must be non-negative and le...

How to display integers in messagebox in Visual C#?

I am trying to use a messagebox to debug a Visual C# program. When I click a button I want a simple messagebox to popup and display the values of several integer variables. This is what I have System.Windows.Forms.MessageBox.Show(myGame.P2.Money); However the variable Money is an integer, and so I get this error: Argument '1': cann...

msbuild and visual studio project configuration problem

I have a solution containing a lot of projects and installer projects. One project uses a third party package. The package comes with a native DLL and a .net wrapper DLL. In order for the code to work, the .net wrapper DLL needs to find the native DLL in runtime. But the code never directly refers to the native DLL in compile time (the c...

How to install the Allegro library on Visual Studio 2008 and Windows Vista for the C programming language?

How do you set up to use the full Allegro library on Windows Vista and Visual Studio 2008? Do you have to compile it or is it only a matter of setting searchpaths? ...

References not updating in Solution Explorer.

I had added some references to my C# Windows Projects through the Solution Explorer. When I am trying to load the same project on another machine, I see a yellow mark on all the references that Visual Studio is not able to detect. Therefore, I installed all the libraries that were being referenced, but still Visual Studio is not updating...

Getting Assert to work in Visual C++ Unit Tests?

I'm using Visual Studio 2008's built in testing framework in my Visual C++ project. I'm adding a new Test Project, then a new Unit Test. However, I can't use any of the functions provided by Assert. Assert shows up in the Intellisense, but I can't do anything with it. I've done unit tests fine in Visual C#. Am I forgetting to do anything...

Unable to open my C# project

I'm unable to open my project in Visual Studio 2008. It was developed in C# by my friend. It is showing the this error: "Could not find type 'LibrarySystem.ctrlSeparator'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has b...

Any pitfalls to working on a project created in a 'higher' version of Visual Studio?

I'm asking this specifically regarding Visual Studio 2008 and also the upcoming Visual Studio 2010. If we are given a project that has been created in an edition of Visual Studio such as Team Suite or Ultimate, and all we have to work with is Professional, would that interfere with us working with the project? I'm assuming the code woul...

Microsoft Visual C# 2008 Express Edition

My 90 day trial period has ended, I tried repair/reinstalling the program but that didn't work. Is there anyway I can get another trial period? ...

Error while deploying asp.net website!

Line 108: <compilers> Line 109: <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> Line 110: <providerOption name="CompilerVersion" value="v3.5"/> Line 111: <providerOption name="War...

Scriptmanager not supporting for .net 2.0

I am deploying a website which is developed in 3.5 framework.Server only support 2.0. hence i recompliles the same project by changing the target framework. But there is a scriptmanger in my website. which is not supporting 2.0 framework... is there any work around for this? ...

Not able to capture Enter key in WinForms text box

When the user is entering a number into a text box, I would like them to be able to press Enter and simulate pressing an Update button elsewhere on the form. I have looked this up several places online, and this seems to be the code I want, but it's not working. When data has been put in the text box and Enter is pressed, all I get is ...

How to get the FolderPath in MFC application

I am using visual studio 2008...I am tryin to get the folder path for my output file in my design ...I know there is a class called CFolderDialog ..but its not working in my pgm..should I include any header file inorder to get that..if YES,can anybody tell me how to include in visual studio 2008..plz help me ...

Visual Studio Report Viewer Control 2008

I used the Report Viewer Control with SQL 2005 a few years ago. Back then I had to download and install the control manually, even for development, if I remember this correctly. It appears that VS 2008 is supposed to come with this control, and it is supposed to be in the Data section in the Toolbox. I am using VS 2008 Database Edition a...