visual-studio

How to create a Visual Studio macro that works with Team System work items

I need to create a macro or VS.net Addin that will insert the current date and time and user name in a field in a TFS work item. The sample macro does not work and I cannot find any way to programaticaly access a TFS work item that is open in the IDE. Is this possible? ...

How to get SourceSafe project of a version before a certain date?

I am using SourceSafe Explorer v8.0. I imported an existing project from SourceSafe into VS 2008, worked on the project and checked it in a few times. Now I need to import the same project into a different folder but the version of before I started working on it. I see a Get Latest" option. Where's the option to get a certain older vers...

Sorting an List<> with my custom order which is stored in another List (C#)?

Hi there, Can anyone help.. I have a generic list like so IList<itemTp> itemTps; itemTp basically is a class (has a number of properties) and one property on this is "code" I need to be able to sort it an specific order which i have set in another List. This list is a simple list that lists the order (starting from first to las...

Can I run an EXE as my Visual Studio compile begins?

I have a WinForms utility that I use constantly, and enhance regularly. Roughly one million times, I have hit F5 to compile the utility -- and the compile fails because the utility is running, so the EXE is locked and VS cannot write out the new EXE. After ~1,000,000 dohs! I'm asking for your help. If I could run an EXE as the compile ...

Visual Studio Shows errors until I open the *.aspx.cs page???

The Visual Studio Error List shows like 50 errors about controls and variables not existing. I double click an error, it takes me to it, and after about 1 second they all go away! There aren't any real errors, as my site compiles without errors or even warnings. I know I've seen this before, but I forget how to fix it. Anyone know wh...

move controls freely on asp.net webpage

How to make controls float freely on asp.net webpages? It was some setting to be changed in visual studio right? ...

Is it possible to get the debugger to display the name of the function pointed to by a boost function object?

When debugging code using boost function and bind in Visual Studio, I would like to be able to have the debugger show information about the actual function pointed to by the boost functor. For instance the name of the function, the signature of the original function (before bind was used on it), or the state of the functor. At the momen...

Problem with retrieving XML via HTTP and writing to file

Hi guys, I've written a small scraper that is meant to open up a connection to a PHP script on a remote server via HTTP and pump some XML it finds there into a local file. Not exactly rocket science, I know. The code below is the scraper in its entirety (cleaned up and anonymized). This code works fine except for one small detail, i...

Namespace browsing works correctly in tools and as Imports but not in code window (except imports line)

Hello, I posted this question and still have not gotten an answer so I thought I would link to the following video file of the problem...sorry I tried to upload the video to videos.yahoo.com but the downgraded video is unviewable. So here is a direct link to the avi file hosted on my website. SUMMARY OF THE PROBLEM I have a controls p...

how can I get F# language reference from VS 2008?

I have installed the May 2009 CTP. And I would like to read F# language reference offline, instead of having to visit msdn.microsoft.com. How can I do that? (Also, I noticed in early releases of F# you could right click a keyword and then select from menu 'Go to Definition' and VS would show some source code. I cannot do that anymore, w...

Java IDE recommendations (GUI designer, ORM designer, etc...) for a VS user

Hi guys, I work with Visual Studio in my day to day job and I love the productivity features that it has. The Visual designers it provides are wonderful, such as for Winforms, WPF, DataSets, LINQ to SQL, Entity Framework, Class diagrams, etc... I am after a similar development experience for developing in Java. It has been many years...

Updating Visual Studio project references programatically

I wish to programatically update the references in the projects in my Visual Studio solution. I have roughly 15 projects in my solution and when I am developing/debugging I want the references to point to the projects within the solution. As part of my release procedure I sometimes need to make a copy of one project and then update the...

Why is msbuild and link.exe "hanging" during a build?

We have a few C++ solutions and we run some build scripts using batch files that call msbuild.exe for each of the configurations in the solutions. This had been working fine on 3 developer machines and one build machine, but then one of the projects started to hang when linking. This only happens on the newest machine which is a quad co...

Why is IntelliSense support for C# lacking when compared to VB.NET?

For me, developing for the Java ecosystem payed the bills for many years. However, for several years now, I have been working primarily in the .Net space. Initially, my transition into the .Net world consisted of writing and maintaining VB.Net code. VS provided almost all of the nice intellisense support I came to expect after years o...

Blackberry Development in Visual Studio

I am looking into developing a small app to run on a blackberry which will send a few commands to a windows app. I installed the plugin for Visual Studio development IDE. Where can I find information on blackberry development in visual studio? ...

How to speed up Visual Studio Webserver (Cassini)?

Hi, for my webapp the integrated Visual Studio Server (Cassini) ist much slower than IIS. How can I speed up Cassini so that i dont have to wait for 3s for every small page? ...

How to capture actions taken on Windows Media Player

Hi, I want to programmtically detect the state of movie currently being played in Windows Media Player. i..e if the movie is maximized I need to find that it is maximized and put the word "MAXIMIZED" in text file, if the movie is paused I need to capture PAUSED in text file, if movie is stopped I need to capture STOPPED in text file. T...

Custom CommonDialog/PrintDialog Newbie Question

Good Day, I am trying to create my first custom Print Dialog in C#. I found some samples online that I'm working with to do this. What I want to do is to put a button underneath the Properties button in the upper right corner. The code samples I have seen so far put new controls on the bottom of the Dialog relative to the position of...

How do I include an html tag in a C# summary so that it is processed as text (not parsed as XML)?

I'm writing an HTML parser in C# and want to include examples of the HTML that it handles in the summary XML blocks. How do I prevent the < and > characters from messing up the auto-documentation of Visual Studio 2008? example: /// <summary> /// Creates a FlowSegment based on an HTML code, i.e. <bold> /// </summary> /// <para...

Communicate from blackberry to winform app over wifi

I need to communicate to a winform app from a blackberry. Most of the development docs talk about webservice, which I am not hosting in my desktop app. Is there any other protocol I can use to communicate from the blackberry device? I was looking at sending very small commands via UDP. The communication has to be done over WIFI only. ...