visual-studio

Workflow for renaming a class when using Visual Studio with Perforce

(I am new to perforce and am trying to avoid getting myself into problems, I have hit problems doing this with other source code control systems) When I rename I class I need to Change the class name it’s self Get Visual Studio to Refactor all the code that uses the class Rename the file in the Visual Studio project Rename the file in...

Fastest way to create a Converter in Visual Studio

When working with Binding converters are pretty common.. I always find myself Right-click the correct Folder Click Add Click New Item (Sometimes) Choose Code to the left Choose Class and "Add" (and sometimes when I'm in a hurry a create an AboutBox instead :-( ) Copy an old IValueConverter or IMultiValueConverter Change the...

Blue/Black line appearing on exception thrown in Visual Studio 2005

I'm having a problem with VS2005. Whenever I have an exception thrown and my program breaks, the line that it breaks on is not readable because it turns black and blue. Please see my screenshot for a better idea of what I'm talking about. I had resharper installed but I went ahead and disabled it but this is still happening. Thanks ...

WebService Debug Synchronization (why do my breakpoints give the message "The source code is different from the original version"?)

I'm fairly new to web service development, and I am really confused about how ASP.Net Development Server synchronizes with code during debug mode. When I make changes to my service, I cannot figure out how to propigate those changes so that my client can "see" them (I've been able to synchronize through a stumbling series of publishin...

Is there a way to link or export Visual Studio javascript breakpoints to Google Chrome?

In VS i can set breakpoints on javascript code, which are correctly interpreted while debugging with IE. Is there a way to do this with Google Chrome? ...

Outlook 2007 Addin - LoadBehavior in registry always resets to 2

Hi people. I know this has been asked before, but I've never found a solution to this. I created an Addin in Visual Studio for Outlook 2007. I created an Installer and copied the files and created the registry values. It installs perfectly on the developer computer and it uninstalls perfectly as well. But on the second computer, which is...

Which method is better for debugging/profiling - .DLL or source code?

Hello all, I am developing an application and I will need to take measurements on different aspects, namely time spent in each method and the strain on system resources as well as doing the occasional bit of debugging to monitor how the data is processed. I'll be using an open source library for MIDI files that is available as source c...

Visual Studio Reference Not Being Copied Over In Multiple Project Environment

Hi I have a solution file in VS 2010 and it has multiple projects in it. Now, I have a reference to this dll call MySql.Data.Entity.dll. As an example, I have the following projects setup in the solution: Domain (reference to MySql.Data.Entity.dll) Domain.Test (reference to the project "Domain") I want that Domain.Test to copy ...

add Qt to existing Visual Studio c++ project

hey there! I've got an existing Visual Studio c++ project. It creates a mainwindow using GLUT and got a right-click menu (also using glut) all I want to do now is to open a second window used as property inspector to display and change some values. Everyone recommends using Qt for GUI stuff - but all the tutorials I find regard either...

Visual studio printing range within array

Blob is defined as follows: unsigned char* blob=new unsigned char[64]; We then try using the immediate window blob+12 0x084F8854 *blob+12: 0x75 'u' blob+13 0x084F8855 *blob+13: 0x11 '' blob+14 0x084F8856 *blob+14: 0x94 '' blob+12,3 0x084F8854 [0]: 0x75 'u' [1]: 0x0 '' [2]: 0x0 '' Why doesn't blob+12,3 displa...

How to enable Design Ruler on VS.NET winform?

When Creating and Adjusting Controls on Winforms visual studio has its intellisense ruler so you can Arrange all controls symetrically. Now My Problem is i dont know how to Enable this again in VS.Where can i see the option to enable that tools again. Thanks in Regards ...

2d Camera Not following Sprite Correctly XNA 3.0 C#

Hi, I need help with a camera following a sprite. I have a camera class which isn't following the sprite properly. My camera class is camera cam; cam.position = sprite.position this piece of the code isn't executing properly. everytime I run this code it resets my sprite as if it was in position (0,0) and then follows my sprite. Her...

Visual Studio 2010 Developer Edition Features

Hi All, Can anyone tell me a brief summary about the features of VSTS 2010. I want a brief introduction on : Class Designer, Static Code Analysis, Code Profiling, Unit Testing with code coverage, Test Impact Analysis and Intellitrace. ...

Debugging Source Indexed Software with Visual Studio is a pain

I'm responsible for some internal tools and I want to make debugging them as easy as possible on client machines. We used to ship with full source code and debugging information and built them in exactly the same location as the typical client install path. This made debugging extremely easy. We have now moved to using Windows Installer...

Why do this two ListBoxes look different if their properties are identical?

If I make a Visual Studio 2010 WinForms project and let the wizard add Form1. Then I add a ListBox to Form1. Then I add a form with "Project/Add Windows Form", and add a ListBox to that form (Form2). And then change in my "Program.cs" file the line Application.Run(new Form1()); for Application.Run(new Form2());, the ListBox in the Form2 ...

Problems with the Visual Studio Debugger

I have the following Problem.. I'm working on a Project (c#) and while trying to debug a succesfull build is going to be created. But when putting Stop-Marks in the Source Code or pausing the execution of the application strange things happen... I'm using the "Local" Tab at the bottom to check and control the values in the objects and ...

how to prevent inheritance for web.config file for "configSections"?

I have following in my parent web applications config file <configuration> <sectionGroup name="testmodule"> <section name="testmodule" type="RewriteModule.RewriteModuleSectionHandler, RewriteModule"/> </sectionGroup> ........ i want to prevent child subfolders from inheriting this config section where should i put <...

Using regular expressions to find img tags without an alt attribute

Hi I am going through a large website (1600+ pages) to make it pass Priority 1 W3C WAI. As a result, things like image tags need to have alt attributes. What would be the regular expression for finding img tags without alt attributes? If possible, with a wee explanation so I can use to find other issues. I am in an office with Visua...

Can you install .NET Framework Client Profile 32 bit version on a 64 bit PC/OS?

Mainly I ask this because I don't want to distribute both versions, and if I need to instal a 64bit .NET on an x64 PC and a 32bit .NET on a 32 bit PC then I would need to make this check in my loader application to download the correct version for the correct PC. However, if I just do a one for all, it would be easier - and i would just...

Magic Code?! - .aspx Fields Missing & Disappear from Source Code

Hi, I have a reeeaaally weird & strange problem with some form elements on a .ASPX page im working on.. the page form has a hidden slide-in on click of a div, section allowing the user to 'make a reservation'. The jQuery used to animate the slide works fine, and happens on click on the ticky check-box (id="rescheck"). The problem is, i...