visual-studio

[MS Visual Studio] How to view an active view C# class in 'Solution Explorer' ?

I have a solution which has many projects inside it. I build the solution and have some compile errors. Double clicking an error will open a class file, called FileA.cs. What I don't know how to do is viewing FileA.cs in the Solution Explorer pane. Please help! ...

Best way to work on your code when you are away from your office

A lot of time I have to code from home. Normally I just remote desktop to my computer at work and code. But it is remote desktop: slower, no dual monitor and ... Is there a better way of doing this? Maybe a drive that follows you everywhere you go! ...

visual studio 2008 can't open project from svn

I am using ankhsvn with my visual studio 2008 and when I tried to open the .sln file I get the following error: The project file "blah blah blah" cannot be opened The project type is not supported by this installation Why is this??? ...

Variadic Macros : how to solve "too many actual parameters for macro.."

Ive been working on getting some of my code originally built on the mac to run under Visual Studio 2008 Express and have run into a weird problem with the variadic macros i use for my assert code : The macro is defined as : #define SH_ASSERT( assertID, exp, description, ... ) shAssertBasic( int(exp), assertID, description, __LINE__, _...

Recommendation for creating DAL objects

Hello There, Can you recommend a DAL object creator that is simple yet useful. I want something that creates and updates object the way LINQ does. It should be in c# and much better if it splits object's properties and data access methods in partial classes. We've used CSLA before but I want something more simplier for our next project...

How do i define a preprocessor symbols in C# visual studios

Sorry if my terminology is wrong. I wrote #if TEST_APP in my code. Now i would like to define TEST_APP. How do i set it using visual studios 2010? This is a windows form application. Bonus if you can tell me the name of the symbol that is set in a winform project and in a web project ...

Setting a VCProject property to default

I'm trying some VS2005 IDE macros to modify a large amount of projects (~80) within a solution. Some of the properties I wish to set do expose a programmatic interface to 'default', but many others do not. Is there a generic way to set such properties to their default? (eventually meaning erasing them from the .vcproj file) Simplified ...

How to make Visual Studio to automatically include curly brackets in C# code?

After namespace, class, struct, enum, for, foreach, while, switch, do, using, unchecked and at the beginning of methods, shouldn't Visual Studio automatically include curly brackets? How to activate this feature? ...

How can I stop the Visual Studio debug window appearing when a process crashes?

I have a server that runs processes that are playing up. We have a third-party process monitoring service running that will detect when a process dies. However, the server also has VS 2005 installed. When the process fails, it displays the 'Choose Debugger' and doesn't actually quit. Our process monitoring doesn't detect a missing proc...

Can't to connect Visual Studio 2008 to TFS 2010

I am trying to connect to my TFS 2010 RC server. When I try to connect I get a error message. Here is a screen shot: This is the path I am using to connect: http://tfs2010test:8080/tfs/DefaultCollection I have Team Explorer 2008 SP 1 installed. I have read this question: http://stackoverflow.com/questions/1925512/visual-studio-200...

Visual Studio: find and replace ALL CAPS with Title Case

Consider the need to replace window titles that are currently in all caps i.e. "ADD PRESCRIPTION", "ADD PATIENT", to the form "Add Prescription" and "Add Patient". I am using the Visual Studio search dialog to find all of the strings that are all caps using the regex "([A-Z]|[ ])*". That works great. Is it possible to find and replac...

.NET C# running application from UNC results in error

I have an application which does not read ANY files from the local disk or does not try to write anything. It runs perfectly on the local filesystem, but it needs to run on a few 100 workstations, so I put it on a share on a Win2003 server. But when I try to start it on a XP workstation from the UNC: system.io.fileloadexception What ...

How to link VBA app against debug mode COM DLL

I am trying to debug an VBA excel app that invokes some functions from a C++ COM DLL. I have added type library of the COM DDL in Tools--->References. If i build the DLL in debug mode, VBA app complains about not finding the dll at run-time. When i build the DLL in release mode, i am unable to debug it. Does anyone knows how to link VBA...

C# WPF Drag to Reorder Listview

How would I drag to reorder a ListView in WPF? ...

Is there a way to display line numbers in the VB6 / Visual Studio 6.0 IDE?

In the VB6 / Visual Studio 6.0 IDE, is there a way to display line numbers in the code editor like there is in recent versions of Visual Studio .NET? For example, I would like to ask someone a question about their code and be able to say "In lines 10 through 13 of your MyClass.bas file, I noticed this happened." ...

How to check if label in VB.net (VS2008) has multiple lines?

Hi, I have a method that saves form controls data to a text file, including its text. IF a label has multiple lines, this breaks the text file writing multiple lines to it. I was instructed to simply ignore multiple-line labels and don't include it in the file, but I don't know how to check whether or not a label has can multiple line...

How to get all forms in a VB.net (VS08) project in an array?

Alright, so I need a method that traverses all the forms inside a VB.net project under Visual Studio 2008, and create an array of type form with references to all the forms inside it, so that the array looks like this (pseudocode) FormsArray() = [Form1, Form2, Form3, Form4] However, I don't have a clue as to how to begin. Any help? T...

Configuration file 'C:\my\App.Config' is being used to configure all executables

I have a Visual Studio setup project that installs an application into the task scheduler and also installs a GUI application to manage some configuration parameters in the registry. This being the case, the setup project installs two different primary outputs (.exe's) as part of the process. I am getting the following warning when I r...

WPF StackPanel Layout Question

I'm trying to create a layout similar to this: Here's the code I have: <StackPanel TextBlock.FontFamily="Segoe UI" Orientation="Horizontal"> <StackPanel HorizontalAlignment="Stretch" Width="Auto"> <TextBlock Padding="5,0,5,0" FontSize="12" FontWeight="Bold" Text="{Binding RelativeSource={RelativeSource TemplatedParent}, P...

Global variable is changed, but memory breakpoint is not hit

I have a bool variable which should be true, but is sometimes set to false. I have set a memory breakpoint to see what is changing that. To my surprise, the breakpoint did not hit, but the variable went to false again. What could change the memory without memory breakpoint catching it? ...