visual-studio

How to customize Visual Studio Console Debug window?

I'm curious if anyone has figured out how to create their own Debug Output window in Visual Studio. For applications without a real console window (e.g. web apps), writing Debug or Trace messages end up in the Debug output window along with every other message (including overly verbose DLL loading messages). It would be great if we coul...

Assembly code as an argument to inline assembler in Visual Studio

I need to pass assembly code as arguments in Visual Studio, therefore have a function e.g.: myasm(char *x) that will accept arguments like "mov eax,eax\n add eax,eax" Unfortunately I can't use GCC compiler for what I'm doing. Is there a way to do this in VS? (Note: the assembly code I'm passing is dynamic so I can't predict what it is ...

Netbook for DOTNET Development

I'm looking for a netbook to do some dotnet development. Is there a recommended brand/configuration. I'm looking for reasonably good performance. Here are some of my requirements: Win 7 ultimate MS Office VS 2008 and VS 2010 when it's out CodeRush good size keyboard without having to do a Fn+Key for Insert, Home, End and Del keys Prefe...

How to Turn off auto-formatting when surrounding by #region (VS2008)

I dont like the way VS formats the code so, I've unchecked all 3 options in Text Editor / C# / Formatting. I've also checked 'Ignore spaces in declaration statements'. In most cases it works. But when I'm surrounding code by eg. #region I noticed my declarations are reformatted (Removed TABs) Is it a way to protect against ?? I'm u...

Porting code from Linux to Windows

Hi all, I'm using Visual Studio .NET 2003, and I'm trying to port code I've written and compiled/run successfully in Linux GCC to Windows. I'm a newbie when using VS. I've created a new project, and added all the .c and .h files I have into the project by Project -> Add Existing Items, then chose all the .c and .h files. I'm not famil...

Permanent deleting under TFS 2005

How can I permanently delete a folder/file under TFS 2005 source control? I know about the tf destroy command, but that only works with TFS 2008. I also know about the TFS PowerPack at CodePlex, but I want to know if there is a built-in tool to achieve this. ...

VS 2008 using VB coding

I need help with coding please; I don't know how to resize images before saving them into a folder. Then, I would like to retrieve this image (binary data) and display in grid view. Your help is greatly appreciated. ...

Visual Studio 2005 build problem

Cheers, I have Microsoft VS 2005 installed (full version). And when I'm trying to build or debug my solution (with 10 projects) a windows installer window opens and says: The feature you are trying to use is on cd-rom or other removable.... So I then put my VS2005 CD and VS does his thing and than my build and debug processes are work...

Visual Studio Build Tasks - TFS Operations

I'm looking to extend some post build tasks to include the checking out and then checking in of a DLL. We are using TFS and I know there are command line tools to do this. What I don't know how to do is to integrate these into my existing post build tasks. Right now my post build tasks are simple and are managed in Visual Studio through ...

Visual Studio Shortcut/Alias In .csproj

Within Visual Studio I'm pretty sure there is a way to "alias" a file among several projects. So in other words the actual file lives in only one place within the file system but has multiple references within two or more .csproj files. Short of opening the .csproj and creating such an alias, how would I do this within Visual Studio? ...

Issue with my button's code not being executed

I have an image button that when clicked the first time it just seems to submit the page like an old classic asp button. However, after the submit the button's code is executed. Any idea what can cause this? <asp:Button ID="bttnfinal" style="cursor:pointer;display:none" CausesValidation="false" OnClientClick="return true;" runat="serv...

Turn off auto-add of subroutines in Visual Studio

My project is built in VB.Net Many times I find that Visual Studio has added subroutines to my code files even if a subroutine of the exact same name already exists. This can cause debugging nightmares as the new empty routine seems to override the correct routine. I think this can happen if I double-click on a control in the form Des...

Visual Studio loses/drops/deletes VB continuation lines after subroutines?

Several times while debugging a VB.Net program I have found that continuation lines are missing from a subroutine designed to handle an event. The continuation character "_" is there but the following line is missing Example: Friend Sub TV_Main_Network_MouseDown _ Handles TV_Main_Network.MouseDown Will become Friend Sub...

Funny characters in Visual Studio output window

I have written an External Tool that uses plink.exe to execute gcc on a Linux system and then capture the output back on VS's output window (there is a checkmark in Tools/External Tools/Use Output Window). But Linux outputs with utf-8 and so I get some garbage. Is there any way to get VS to translate that utf-8 output to readable output?...

C sharp question - make form visible

Hey I made 2 forms in c sharp visual studio. How can I make one form invisible and another visible (Have done this in visual basic only before) I guess Syntax should be similar. ...

Visual Studio Solution to SCONS?

Is there any tool that can convert a large and complex* Visual Studio 2005 (or 2008) Solution into a SCons project? * Lots of projects and multiple configurations on multiple platforms/compilers ...

What is the requires/provides design pattern used by the T4 RequiresProvidesDirectiveProcessor class?

The MSDN Library documentation for the RequiresProvidesDirectiveProcessor class in the Microsoft.VisualStudio.TextTemplating namespace refers to a design pattern called "requires/provides". What is this design pattern? "The abstract base class for a directive processor that defines and implements a design pattern called requires/...

Install asp.net mvc 2 beta on Visual Studio 2010 Beta2

Is there any workaround on installing asp.net mvc 2 beta on a VS2010 Beta2 box?. Phil said on his post that it isn't supported for VS2010 beta2, mostly because of the tooling support and stuff... But what If I just reference the DLL??!!!!! ...

Drag file and reveal text - VB.NET

Hey guys, How can I drag a file into a textbox, and then it will show the directory of that file. It seems pretty simple, since its a drag and drop kind of thing. Thanks ...

How to write c# code in contructor that will NOT be executed at design time by Visual Studio?

I have a method call in the constructor of my user control that does something that won't work at design time (connecting to database), and the VS just bailed out when I tried to add that control to the GUI designer. Sure I can factor out those code to a separate method, but I don't like the idea that everytime I use that object I need t...