visual-studio-2008

VS2008: Prevent attempting to link if any projects fail.

In VS2008, when you build a big solution with many projects, if one of the projects fails with an Error, it still attempts to link the startup project, which obviously is unnecessary in most cases because if a project fails you'll need to fix that error first before running the program. Does anyone know how to get VS2008 to not try to l...

create control on dynamically created button

hi, i have created a dynamic row which contains 2 labels, 2 textboxes and 2 buttons- Add & Remove and I want to add new rows of same content using dynamicaly created Add Buttons and remove same row using dynamicaly created Remov buttons, i am using C# please help me out. ...

VB.NET: How to compose and apply a font to a label in runtime?

Hi, I'm developing a Windows Forms Application in Visual Basic .NET with Visual Studio 2008. I'm trying to compose fonts (Family name, font size, and the styles) at runtime, based on user preferences, and apply them to labels. For the sake of both a simplier user interface, and compatibility between more than one machine requiring to u...

AnkhSVN shelves

I just setup AnkhSVN after having used TFS till now What in AnkhSVN is the equivalent of shelves that I would create/use in TFS? ...

Get Project or Relative Directory with T4

How can I get a reference to the directory of the visual studio project or solution or the directory of the t4 template from within a t4 template? I have a template that concatenates a number of files together which are located relative to the template. I need to get a reference to there absolute location through a relative means. Hard ...

When typing $( in visual studio for jquery... it gets automatically converted to $addHandler(

Everytime I start typing $( to call a jquery command visual studio 2008 automatically converts that to: $addHandler( ... I have to delete that and retype it every single time. Is there a way to fix this change it? ...

Cannot add database to an Asp.Net application

Hello everyone, I'm unable to add an mdf database file by right clicking on the project name and clicking on "Add->New Item->SQL Server Database". It gives me the following error... ** Connections to SQL Server files (*.mdf) require SQL Server Express 2005 to function properly. Please verify the installation of the compone...

Namespace reference in VS class diagramm

When defining parameter type that is e.g. in System.Data you have no intellisense and your class code will not have required using to compile the code. Is there a way to add it? That would be good to be able to add usings to class or groups of classes right from class designer, but I didn`t find how to do it. ...

Visual Studio 2008 - Moving solution files (sln, suo)

If a VS2008 project is created initially with a web app project, and class projects are added, and the structure is like this: Parent Folder Web App Project Folder - (solution Files in this folder) Class Project 1 Class Project 2 ... do you see any problems with moving the .sln and .suo files to the parent directory? ...

Using #defined values in Visual Studio dialog resource scripts?

I'm trying to create an About box for my Windows C++ application. In Visual Studio 2008, I'm using the dialog editor to design the dialog. I want the About box to display the application's version in a static label. I can hardcode the version into the dialog, stored in a .rc file, but then I'll have to remember to update the version in ...

What is the difference between the "Checkboxes (A)" and "Checkboxes (B)" dialogs in a Visual Studio setup project?

In a Visual Studio Setup & Deployment Project, I can design the user interface for the installer. I have a welcome screen, a license acceptance dialog, and then an installation location dialog. All good. I want to include one more dialog, to confirm changing of file associations. I think the way to do this is with a dialog that has a...

In a Visual Studio Setup Project, How do I make update of the Registry conditional on a Checkbox dialog?

Currently I use Registry Settings within the Setup Project to set the file associations and the icon for the associated files for my application. In the generic VS Setup project, the update to the registry is done always. How can I make the update to the registry conditional on the state of a checkbox dialog? ...

VS C++ program only works when .exe is run from folder? [not VS debug]

Output from debug: File opened... File contents: Output from .exe (run via double click from /project/debug): File opened... File contents: line1 line2 etc. . . Source code: #include <iostream> #include <fstream> #include <regex> #include <string> #include <list> using namespace std; using nam...

Found conflicts between different versions of the same dependent assembly.

Hi! i currently programming a program in visual studio using the .net 3.5 framework and the microsoft interops to interact with the office products. I have an issue with the app.config file. everytime i compile my solution, rebuilt or build it a warning occurs in the error list witch says Found conflicts between different versions of ...

"[Lightweight Function]" in the call stack

I'm debugging a program (VS2008), and I was stepping through lines of code. I came across one line where a delegate function was being called, and I tried to step into it. However, rather than stepping into the method as I expected, the method was bypassed, with the debugger instead stepping into what I assume is a function called by the...

In a Visual Studio setup project, How do I generate an uninstall script?

I have a Visual Studio setup project. Upon installation, it creates an uninstall batch file in the application folder. IF the user wants to uninstall the product, he can go to "Add/Remove Programs", or he can just double-click the uninstall.cmd. The contents are: %windir%\system32\msiexec /x {CC3EB7BF-DD82-48B9-8EC5-1B0B62B6D285} ...

Will Installing VC Express 2008 on a VS2008-ready machine corrupt my system?

I have Visual Studio 2008 installed on my machine and I want to know whether I can install VC Express 2008 with no crashes. What would I want such a thing? tutorials. Thanks in advance. ...

How does one have developers on VS2008 target .net 2.0 (but not the service pack) to avoid runtime crashes?

So, I want to upgrade my development team to VS2008. As an enterprise, we haven't rolled out the 3.5 runtime yet. From some reading, it seems like installing VS2008 will automatically give you .net 2.0 SP1, which has some new APIs, and when you target 2.0 runtime it will assume 2.0 SP1. But if SP1 is not rolled out to our users, this ...

Visual Studio: Is there a way to collapse all items of Solution Explorer?

I know that I can use Arrow Keys to collapse items of solution explorer one by one, but I would like to know if there is a way to collapse all items with only one operation. I want to know it because, today I have a solution with 6 projects that have at least two hundred files and if I try to collapse them one-by-one I will have a hard t...

WinForms controls get dislocated everytime the form is viewed

I'm stumped by some bizarre behavior in Visual Studio's forms editor. I have seen this on a couple of different forms in my application. Each time I open the form in Visual Studio's layout editor some controls will be in a different location than when I left them. Typically some buttons move up just a little bit from the lower right c...