visual-studio

How to Use Timers in Windows

What are the various ways that a timer can be set up using the Windows API. What are the pros and cons of each method? I'm using MS DevStudio's C++. ...

Is there a tool for emailing Shelveset's and History items from within Visual Studio Team System?

We are using Team Foundation Server for our source control system in Visual Studio. Although we don't do a lot of pair programming, we do have all of our code changes peer reviewed in a process like this: write code shelve the code or check it in (if it's low risk) send an email to a team member with the shelveset name or changeset nu...

Which characters are allowed in a VS project name?

Does anyone know which characters are allowed in a VS project name? Is there a reference somewhere? ...

Create SQL Database and add to project using Visual Studio

When I go to the 'Add New Item' window in Visual Studio 2005 and try to add a SQL Database it hangs for a bit and then give the following error: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct...

Need merge modules from VS2005

Hey guys! I'm trying to use a merge module in my setup-project. But it seems like there are dependencies in it that require earlier versions of a couple of merge modules than I have (I've got VS2008). I need these files from VS2005: Microsoft_VC80_ATL_x86.msm Microsoft_VC80_CRT_x86.msm Microsoft_VC80_MFC_x86.msm policy_8_0_Microsof...

Using a resource image in code behind

I need to dynamically change the background image applied to one of my buttons, but can't figure out how. The images are added to the project and have their Build Action set to Resource. I've tried the follow: buttonUnits.Background = new ImageBrush(new BitmapImage(new Uri("/Images/InchDOWN.png",UriKind.Relative))); This compiles succ...

VS 2008 designer not installed for xaml

there is no editor for c:......\Page1.xaml please make sure the application for the file type (.xaml) is installed no idea what the issue could be. i tried to find devenv.exe but i can't find it anywhere!! i have installed sp1. i have also completly uninstalled vs2008 and .net framework 3.5 and reinstalled it. did not solve it. some ...

From Visual Studio C++ 6.0 to VS 2008?

I work in a company doing C++ development on VC6, and we're considering a move to VS 2008. What are the benefits of upgrading? What are the cons? Any guides/steps on migrating project files, or gotchas I should be aware of? Are people ok with moving to the different development interface? ...

What is the "Browser File" in Visual Studio 2008 and why may we need it?

While adding a new file in VS 2008 website, I found something called "Browser File". Does anyone know what is this, how to use and when to use? ...

Find all .rpt files in VS solution

I would like to search my VS 2008 solution and return back all files of .rpt files. If possible, I would prefer it to be in code. I'd love to iterate over these files. (This is for some maintenance of a solution that I inherited and has a lot of unreferenced code which I am attempting to clean up) ...

Visual Studio extensibility (add-in): How to access Silverlight-related properties?

This is the question that has been posted to MSDN forums some time ago, and stayed unanswered to this day: http://social.msdn.microsoft.com/Forums/en-US/vsx/thread/676b13d4-acfc-4252-b102-5fc0553e4b81/ The property I'm interested in is ProjOutputReferences, stored in the Visual Studio solution (.sln) file. In Visual Studio, this prope...

C# DataGridView Vertical Scrollbar doesn't paint correctly with build file.

I have a DataGridView with both horizontal and vertical scrollbars. When running the application within Visual C# using "Start debugging" everything looks fine, but when running the application itself after building it the vertical scrollbar doesn't paint correctly (it's not really visible but there is space taken up as if it should be...

Is a separate Visual Studio license required for a build machine?

I know that some companies allow you to install their products on build machines as required without requiring a separate license (DevExpress is one that comes to mind). However I was wondering if Microsoft had the same allowances on licenses. MSBuild does not support vdproj directly and require you to run Visual Studio from the command...

Why doesn't switching to release in VS set the debug parameter to false in web.config

In VS2008 (and earlier if I'm not mistaking) I have dropdown that lets me choose between Debug and Release mode. All well. When I switch VS to Release, the debug attribute in my web.config files isn't set to false at all though. Is this the way it is supposed to be? I am bound to forget to set it to the correct value on deploying.. What ...

Solution explorer of visual studio

In solution explorer of asp.net application we are adding something in References section for eg:in our project there are sample.Dal,sample.exeption ,system.core etc What is actually References means,,,can we add by 'using' statement ...

Visual Studio (or resharper) variable and method coloring

Ok, I am not sure what the naming for this is actually called, but I would like to know if the following is possible in Visual Studio. When I set my cursor on or highlight a variable, or method name, or string... etc, I would like the IDE to highlight all uses of it. So if I highlight variable x, then it highlights all other uses of va...

How to associate external files with an assembly

Let's say you have a class library project that has any number of supplemental files that also need to be included with the compiled assembly (e.g. simple text files or even a legacy unmanaged DLL that's wrapped by the assembly as an interop layer). While embedding the supplemental files into the assembly itself is relatively straightfo...

What references does Visual Studio add when I accidentally click Add New Winform?

Strangely enough, this is not on The Google. And I could really use a list so I know which ones I need to remove. ...

Is it possible to copy code from Visual Studio and paste formatted code to OneNote?

Is there a way to copy code from visual studio (C#) and paste it into OneNote, without losing the formatting? I was able to do this, but only if I copy from VS, paste to Word, copy from Word, and then paste to OneNote. ...

Visual Studio 2008 - Customise right click menu

Is there a way to customise the right click menu in VS2008 through the UI? ...