visual-studio

Use older version of MSVCR?

I have VS 2008 and I want my application to work with Windows 98 without needing to include MSVCR90.dll .. Win98 comes with MSVCR60 so how could I tell MSVC to do this? Is my only option to hunt down Visual studio 6? Thanks *also I want to avoid static linking msvcr ...

Upgrading Visual studio 2008 Professional to Visual studio 2010 Preimum

I currently have Visual Studio 2008 Professional installed on my Windows 7 (x64) laaptop. I also have SQL Server 2008 Express installed and Crystal Reports 2008 installed. Can I upgrade Visual Studio 2008 Pro to Visual Studio 2010 Promimum and if so do I have to make any configuration changes to any other apps I have installed? ...

How to enable Line numbering in Visual Studio

Why doesn't VS have any sort of line numbering? Is there any way to enable it, or a plugin for it? I know, the number of lines of code in a program doesn't matter, but sometimes it is nice to know how long a program is, or what line number something is for reference. I can't seem to find that as an option anywhere, to my surprise. Than...

Visual Studio Windows Forms Designer keyboard shortcuts

Extremely basic question. Are there common actions I can perform using keyboard shortcuts in the Windows Forms designer in Visual Studio (2008)? Alternately, could I add my own keyboard shortcuts (either through settings or macros)? It'd really be nice if I could, for example, set a control to dock/undock in its parent container by ty...

Add values to standard expressions list in Regular Expression Editor dialog in VS 2008

Hi. In the "Regular Expression Editor" dialog in VS 2008 ( or 2005 for this matter ) , there is a list of "standard expressions" like : "French phone number" , "French postal code" etc.. And of course there is an option to select a "Custom" and then enter your own regular expression. Well.. I want to add a predefined expressions to...

Visual Studio 2010 Premium is giving me a "Cannot Create Window" error!

When I first launched the Visual Studio (I just installed it) I choose the default programming layout (Visual C#/Visual Basic.NET/ F#/etc) as Web Development. It gave some error that it couldn't find the layout scheme or something and now it says Cannot Open Window. Is there some way to reset the selected layout option? ...

VS2010 development web server does not use integrated-mode HTTP handlers/modules

I am developing an ASP.NET MVC 2 web site, targeted for .NET Framework 4.0, using Visual Studio 2010. My web.config contains the following code: <system.webServer> <modules runAllManagedModulesForAllRequests="true"> <add name="XhtmlModule" type="DomenicDenicola.Website.XhtmlModule" /> </modules> <handlers> <...

WPF Binding Error reported when Binding appears to work fine

I am trying to create a custom TabItem template/style in my WPF 4.0 application (using VS 2010 Pro RTM), but inspite of everything seeming to work correctly, I am noticing a binding error in the trace window. The resource dictionary XAML I use to style the TabItems of a TabControl is given in full here. (Just create a simple TabControl ...

How to implement collapsible sections like on this .aspx page?

This .aspx page has a very nice set of collapsible sections with little "+ -" controls. http://www.microsoft.com/sqlserver/2008/en/us/editions-compare.aspx Can anyone tell me how this might be done in Visual Studio? I have tried using firebug to deconstruct the page but can't find the script that is doing the showCollapsibleItem() cal...

Spacer between elements in visual studio

What shall i use to make a spacer between elements in visual studio like that in QT http://www.tuxradar.com/files/qt_menq_spacers.jpg ...

No Compilation Needed - Compile On Run

Something weird that I've been seeing, a web application written in ASP.Net (C#) that got the source code on the production server and compile that way. So when I deploy to the server I deploy the source code. Why does .Net have this functionality? Doesn't make sense. ...

How do I align ReSharpers "cleanup code" with Visual Studio's "format document"

I'm a big fan of ReSharpers "cleanup code" feature. Especially the Solution wide clean up. But I use Visual Studio's Ctrl+K+D (Format document), it formats the code slightly differed than ReSharper. I'm on a quest to align ReSharper with Visual Studio (not the other way... because you can not share Visual Studio settings in the solutio...

How can I send an email when a program crashes running in Visual Studio 2005

We are running reliability test on our application and looking for crash failures. We have a scripting language built in that exercises the application. The crash may take minutes or days to occur. We are starting it up in Visual Studio 2005 and would like Visual Studio to send us an email when it crashes into the debugger. Does anyone...

Key logging in .NET

Is it possible to write a key logger in Visual Basic.NET? Is this the right language to be using? So far, I've gotten a console app to read input and append to a file. 1)How can I make a .NET program "catch" all keyboard input? 2)How do I make a process not show up in Task Manager? This is not for a virus, but rather a parental contr...

Changing some character shortkeys for visual studio or any text editor

Hello everybody how can i change some shortkeys on my keyboard ? for examle i prefer use alt + f for { this character. ...

what is means of this code

if (exist.IndexOf("true") == -1) { //first condition } else { // second condition } what is means of it if i use (exist.IndexOf("true") != -1) ...

How can I write a registry key from VS post build event?

One of the projects I work on need to read a registry key in order to determine some value. Usually the value will be written during installation. Because I want to run the project locally as well (without installation) I want to write that value after the build has finished. Is there a simple way I can do that? ...

Visual Studio 2008: Setting the vertical separation to default in wpf designer

I favour the vertical separation over the horizontal separation in VS2008 wpf designer. But after deleting the .suo (fresh checkout, new project, etc.) this setting is gone. Is there a way to tell visual studio to default to the vertical separation instead of the horizontal for wpf designer ? I can not find anything in the "options". Did...

Is there a Visual Studio debugger visualizer for the ASP.NET Session?

If so; where can I get it? ...

ASP.net mvc 2 solution folder structure

What is the best way to organize a MVC2 web project (as complex as stackoverflow)? should i have everything in one project? if not, how should i separate the projects and folders? ...