visual-studio

How do I escape keywords in XML comments like "note"?

How do I escape keywords in XML comments like "note" in Visual Studio? e.g. /// See note re Create method attached to this type. I don't want the text after the word "note" to turn blue. Note this may be a Resharper feature. ...

Grouping of break points

I am working on a C# windows based project in visual studio 2005.I often debug different features in this huge project.Now the problem is i have made few break points in few places which i require only when i debug for that feature.i want other break points to be disabled then.I understand this might not be a use case for larger communit...

Why can't i add Bin Folder in an asp.net MVC web application?

I am developing a web application using asp.net MVC... RightClick->Add->Add ASP.Net folder-> there is no bin folder... I am using asp.net MVC 1.0 with visual studio 2008 sp1... Any suggestion... I find a bin folder in my root folder,but not in the solution explorer.. ...

Windows Forms' Appearance

Just started using Visual Studio 2008 and was hoping to convert my VBA UserForms to VB.NET with the intent of upgrading my antiquated UserForm controls to newer Windows form controls that match the operating system. The Windows forms I create in Visual Studio look great, but when I load them in PowerPoint or Excel, the form controls loo...

Fiddler recorded content-length vs WebTest result page bytes

Hi, I am new in visual studio 2008 Web test. I tried to record to fiddler my web site which deployed in IIS 6.0 and GZIP compression is enabled. I saved the session generated by fiddler to .webtest file extension. I attached the webtest file to vs 2008 and run the web test. I notice that the result of webtest page bytes is different fro...

Windows CE emulator on visual studio

I've installed visual studio 2005 and windows embedded c.e. 6.0. How do I create a simple hello world program in visual studio and then port it to a Win C.E. emulator and run the same there. ...

Find tags doesn’t contain specific attribute (specific word) using grep

How to find all server-side tags (<asp:) that doesn't contains attribute runat in my Visual Studio 2008 / MonoDevelop solution using grep? ...

Embed VSTS unit tests in standalone application

In visual studio there is the so called 'test view' that provides an overview of all unit tests within the current solution/project. I wonder if it is possible to embed this view into a standalone application. The idea is to have a standalone application that lets you run special integration tests on a staging system. Any ideas? ...

BackgroundWorker multithread access to form

I am using 5 BackgroundWorker objects running at the same time for a certain purpose, and all of them have to change the same label. How do I do that ? How do I modify the form from more than one thread then ? And how do i do it in case i want to change a public string ? ...

How do you get visual studio's f1 help to show the page for the object rather than warning description?

After a compile or build if I get a warning, I place my cursor in at the point neatly underlined, and press F1 I get taken to the page about the warning. Helpful to a point....but then I often need the help page of the object... example: SPUser u = oWeb.Users[0]; foreach (SPRole r in u.Roles) { .... } after compile, warning is issue...

how to create controls that requires properties in other controls?

I was just creating a Windows form that uses a ToolTip control and it occurred to me that this control (or component to be right on the terminology) provides design time properties for every other control on the form. How can I achieve this for a control of my design? ...

BackgroundWorkers never stop being busy

for (do it a bunch of times) { while (backgroundWorker1.IsBusy && backgroundWorker2.IsBusy && backgroundWorker3.IsBusy && backgroundWorker4.IsBusy && backgroundWorker5.IsBusy) { System.Threading.Thread.Sleep(0001); } if (!backgroundWorker1.IsBusy) { ba...

Missing Windows Mobile Target in Visual Studio

I cannot select the Windows Mobile 5.0 SDK target in Visual Studio for some reason even though the file "...\Microsoft Visual Studio 8\VC\vcpackages\WCE.VCPlatform.config" contains the target. How come I can't select it in VS? How do you get VS to recognize it? ...

How to optimize .NET applications to 64-bit?

In Visual Studio > Build > Configuration Manager you can choose the target platform. What does it change? Is there any other way I can optimize my .NET app when targeting x64 platforms? ...

Reacting to User Interface events in Visual Studio during a processing loop

Hi, I'm developing in Visual Studio in C++, all managed code. I have a tight processing loop that, theoretically, can run for up to around 30 seconds. During that time, I want the UI to be reactive to any user activity, such as pressing a "Stop" button, or clicking a scroll bar. I know the technique is to peek at the UI queue (in a non...

Write Textbox.text to dataset then to xml file

Hello, I found several examples on how to write to dataset, but most of them involve a ds.fill(..) from a data connection and I need a simpler solution. Basically I want to create an xml file from the values entered in a few textbox. I tried different methods but can't make it work. What is the best way to accomplish this? One method ...

I cannot view Tests Projects in VStudio 2008 Team Suite

Hi all, I use VS 2008 Team Suite Enterprise, and Team Explorer...for connect to TFS. I have a solution with 34 projects. There are 4 Tests Projects, but Now I can view de Test projects... It appears only the folder (the csproj) but NO the list of files of csproj. When I click on properties of csproj, I get this error: object referen...

How do I check if my object is properly disposed?

I wonder if there a "trick" that permits to know if the used objects in a portion o code has been properly(entirely) disposed, or, in other words don't creates memory leaks. Let's say I have a container of GDI objects (or other that I need to explicitly dispose) public class SuperPen { Pen _flatPen, _2DPen, _3DPen; public Sup...

Does VS2010 support multi-attach?

When I hit F5 to debug an application, there are usually more moving parts in terms of processes than the one process associaed with the project that is considered the "startup application". For example, a web application makes calls to another (isolated) web application that hosts WCF web services. Both apps are in the same solution, bo...

Visual Studio Macro to Indent C/C++ Braces

We have an old project that we maintain that uses brace indenting. Rather than having to change my Visual Studio options every time I switch projects, I'd like to be able to do this quickly and easily. I'm trying to write a macro in Visual Studio to turn Brace Indenting on and off. The checkbox is under Text Editor -> C/C++ -> Forma...