visual-studio

Creating 32bpp BMP file for toolbar image strip?

I've got a 16 pixel high image that I've created in Paint.NET that I'd like to use in a Visual Studio toolbar. My image is a .PDN file with multiple layers. Visual Studio requires a 32bpp BMP file. How do I convert the .PDN file to the correct format .BMP file? I'm not looking to have this happen in my program. I'm cool with having to...

Possible to combine code coverage results (VC++)

I am using VC++ 2005 and 2008 on a project. Now I want to see if the unit test cases cover all the code, and a found a problem. We use Boost.Test for unit testing, and each file is designed to test a particular function or method. Each file is compiled into a separate executable. I am able to view the results per executable in Visual S...

Easiest way to re-use a function without instantiation a new class

Hi all. I currently have a function that looks like this: public void AnimateLayoutTransform(object ControlToAnimate) { //Does some stuff } I use this function in a lot of different projects, so I want it to be very reusable. So for now I have it in a .cs file, enclosed in a namespace and a class: namespace LayoutTransformAnimation...

How to replace multiple lines in Visual Studio 2008

I need to do a find and replace, where I need to replace 2 lines at time. Does anyone know how to do this in the VS2008 IDE? To clarify, i want to replace 2 lines with 1 line. Many thanks ...

error MSB3216 when registering assembly

Here are the error details: In the Error List: Error 1 Cannot register assembly "C:\Users\cboardman\Documents\Visual Studio 2008\Projects\ExcelAddIn1\ExcelAddIn1\bin\Debug\ExcelAddIn1.dll" - access denied. Please make sure you're running the application as administrator. Access to the registry key 'HKEY_CLASSES_ROOT\ExcelAddIn1......

Visual Studio Find dialog non-standard regular expressions

What is the reason for Visual Studio's Find & Replace dialog regular expressions not following standard regex syntax, e.g. using :b instead of \s? ...

Silverlight debugging issue

Hello everyone, I am previously using VSTS 2008 + C# + .Net 3.5 + Silverlight 3.0 and my application can be debugged correctly in VSTS 2008 (pressing F5 and then start debugging, my application is a traditional Silverlight application, i.e. an xap file embedded in html page). I find when I upgrade to Silverlight 4.0 player, when debugg...

Why does Visual Web Developer 2008/2010 no longer debug silverlight apps in Firefox?

Suddenly today Visual Web Developer does not allow me to debug Silverlight applications. This happens in 2008 and 2010 versions. It gives no error message, just ignores all break points. It can still debug ASP.NET applications. Is anyone else experiencing this? Added: Interesting: debugging works in Internet Explorer but not in Fir...

What features of Visual Studio have you ignored that turned out to be very useful?

Bookmarks: In VS 5 they seemed like a great idea but I ended up not using them mainly because they didn't persist between sessions. E.g. If you closed a file that contained bookmarks they would not be there the next time you opened the file. You also could not move between bookmarks in different files etc. and I stopped using the feature...

Why does Visual Studio check out the .vspscc file when I add a file to a project

If I add a new file to a project under TFS source control, it will check out the project file and the corresponding .vspscc file for that project file. The project file itself changes (to include the new file), but the .vspscc file doesn't change at all. Why bother checking it out? Is there a way to disable it from being checked out and ...

Make visual studio autoformat my source code?

I've searched but does Visual Studio 2008 have a setting for C# where it will autoformat/beautify my code as I write it? There is a setting for VB.NET called "prettify". I've also searched the archives already and found a macro to execute this on save and I know I can drag and drop it onto the toolbar but I want it to work without my doi...

Automated testing of C++ console app in Visual Studio by sending text files to stdin?

Hi, I am going to take part in a coding contest my University is organizining next week. I am only allowed to use C or C++ and I would prefer to use the latter one using Visual Studio 2010. For every task there is a text input provided as plaintext to stdin, for example: 200 100 10 2 11 I need a tool which would assist me with ...

Visual Studio 2008 - Can't edit events in WPF

I just got a new PC with Windows 7. While editing a WPF window, when I right-click on a control and select Properties, I get the familiar property window docked in the lower-right coner. For some reason, I do not see the lightning bolt button to toggle over to the events. Also, when I double-click on a control, nothing happens. Has a...

Creating Windows Installer Project in Visual Studio

I've been struggling with Visual Studio to create a windows installer msi. This is what I was hoping to create in the msi: Installer opens and first page has a couple fields where you can enter various config locations, including being able to browse, and also some drop downs with various config setups. Click Next or Finish or whateve...

How to debug config files in .NET?

I've got a Visual Studio project that recently started throwing a ConfigurationErrorsException, and I can't figure out where it's coming from. I've hunted high and low, can't find anything like the error, and it doesn't appear for any of my teammates when they run the project on their PCs. Does anyone have any specific advice on how to ...

Visual Studio Settings.settings file

Is there a way of creating a new setting in the Settings.settings file during run time? For example, I want to write to the settings file from one class function, and read that value from a different class function. And no, I don't want to pass the values. I know how to get values from the Settings.settings file (value = Properties.Se...

Read and Write into a txt files using VB.NET

Hello, I want to open a txt file and write into him numbers from 1 to 100. and put between every number enter. Thanks ...

Visual Studio locking files while debugging

I have a VS solution containing several projects. While debugging a particular project all the source files are locked by VS. I would like to unlock sources that the debugee doesn't have dependency on. Is there any way to do this within one solution? UPDATE: I'm using Win XP SP3 32bit. Visual Studio 2010, C#. Edit and Continue is enabl...

Design MDX Queries Through Visual Studio Analysis Service

Hi Guys... I am working on data warehouse project I have built The cube and I 'v Transferred the data to it but now I wanna to query it with MDX language I remember that we can use a designer to choose the measures and dimensions ... but I forgotit please can you guide me step by step and which type of projects I have to create to make m...

Audio conversation over ASP.NET page !

Hello, How can I create an ASP.NET page, that allows users to communicate with audio voice. What must I do to accomplish this job. Thanks. ...