visual-studio

View array in Visual Studio debugger?

Is it possible to view an array in the Visual Studio debugger? QuickWatch only shows the first element of the array. ...

Starting visual studio from command prompt

I have 3 different versions of Visual Studio installed on my machine, VS2002, VS2008, VS2005, How do I start a particular version of Visual Studio using command prompt. devenv.exe opens latest visual studio. What should I do if I want to open VS2003 using command prompt. ...

Why does the Visual Studio editor show dots in blank spaces?

I have a strange bug in the Visual Studio text editor. All my blank spaces are replaced by a "." public class Person { int age; } looks like this public..class..Person.......................... {.................. ..int age;................... }..................... I reset the settings to default. Didn't work. I also re-installe...

What do the Visual Studio margin colors mean?

I noticed that Visual Studio colors a few pixel wide area in the margin, to the right of the area where you place breakpoints. What do these colors mean? ...

Project Reference Vs File Reference?

References can be added in two ways in a project. Project Reference. File Reference. But, When to use Project and when to use File reference? ...

Is there a VS shortcut to see the class definition of a variable?

When I press Ctrl+Left mouse button or F12 on a variable I get to the declaration of the variable. Is there a shortcut like this to get to the class definition of the variable's type? So when I have a variable string functionCode I'd like to click functionCode anywhere in the program and get straight to the object browser showing me the...

Application crashes says : Access violation reading location

My application crashes after running for around 18 hours. I am not able to debug the point in the code where it actually crashes. I checked the call stack- it does not provide any information as such. The last few calls in the call stack are greyed out-meaning I cannot see the code of that part-they all belong to MFC libraries. However...

Why Setupper created by Publish feature does not copy files to c:/PROGRAM FILES

I have VB project and I tried to use PUBLISH feature. It seems to create nicely some kind of setup program, but the setup program does not ask where to copy files (it does not seem to copy filesto target machine "PROGRAM FILES".) Is this setup program somehow different from usual installers? NOTE: I want that app files are installed to...

Ignoring source code in the debugger

How can I get the Visual Studio debugger to ignore certain source files? In other words, I would like it to behave as if the functions defined in those files had no debugging info, so that: When stepping into code, it will ignore functions defined in those files (a smart pointer operator-> is an example where this is useful) If the deb...

Edit and run .NET projects from network shares

Since I run my stuff in a VM I like to save my data on shares on the host. But then running and debugging (web) applications and tests from within Visual Studio has problems. How can I configure everything to run with FullTrust when it's started in Visual Studio? Or how to just configure full trust for all network drives? I have turne...

Where should I put initialization code so it would be executed in before VS initializes my control in design mode

I have a method Translate extension which searches for a translation. Normally translations are loaded in Window constructor (I tried in App.Setup too). No if i run the application all the translations are displayed correctly, but when opening a user control all translations are gone. So the question is where do I put my initialization ...

VisualStudio / C#: Debugging imported DLL

Hi, I have a project that imports a DLL (written by me). Sometimes when an exception is raised within a method in the DLL, the host project opens a tab and let me see the code within the DLL. I can also put breakpoints within it. But this behavior seems quite random, I cannot have it on purpose and not always works. Plus, I can't see th...

How to prevent VS designer from updating controls localized values?

Hi, In my program I have a form that uses localized labels (from resx file). Unfortunately whenever I add a new control - designer is refreshing all the labels to their default values. Does anyone know how to prevent that from happening? Is there a better way of localizing forms or is creating a method that will replace all the labels...

Seeking workaround for filename conflict with Visual C++ header file

Our code includes vector, which includes memory, which includes Microsoft's intrin.h, but we have an intrin.h of our own on our include path. Hence memory picks up our intrin.h instead of the system one, and fails to compile. Both our intrin.h and Microsoft's have been around for years, but we've never had a conflict before - VS 2010 i...

C programming in Visual Studio 2008

Hi people! Do you know if it's possible to programm c (not c++) in Visual Studio 2008? If yes then how? I haven't found any component for that. Regards. ...

How to link vc++ and c# projects in visual studio ??

Is it possible to link C# and Visual C++ projects under 1 solution? How can I do this? I hav created a class in c# which contains two methods display() and ListSql(). And how to use these methods of c# project in vc++ project.which type of project i need to create to do this. I do like following I have created a classlibrary wh...

Visual Studio Macros

I am creating a Visual Studio Macro and I want it to take the data it is generating and export it to SQL. I can't seem to find a good way to connect to a database from Visual Studio's VBA. Does anyone know of a good way to do this? I am running Visual Studio 2008 and SQL Server 2008. Thanks for any help ...

Store XML Local Until Network Connection Resumes

New to .NET, any point in the right direction would be a huge help. Trying to write a program to accept data input in a manufacturing environment and store it directly into a SQL database. A problem I can foresee is if the Wireless Network Connection is interrupted (or temporary out of range) Where would I research, or how would I g...

Once a user sorts a datagridview how do I get back the original row index?

say I display a datatable on a datagridview, then the user sorts it, and selects a row... I want to do something with the original datatable to the same row... but the row indexes in the datagridview and datatable are now out of sync. How should I be doing this? ...

.NET template files

I have a application that generates a couple of different mails. These mails are currently build up using a string builder that generates a HTML based string that is the mail content. This approach is getting messy. The code is objects mixed with HTML, etc, etc. What I'd like is to have a template similar to the one used in for example ...