With Visual Studio, Open Same File In Two Windows, Updates Reflected in Both

image.png

I’ve always been frustrated in Visual Studio (all versions I can remember including latest vs2012) with not being able to look at the top of a file and edit the bottom.  Recently, on an Microsoft insiders list I participate in, someone posted that exact feature as a suggestion for future versions of Visual Studio.  Before I had a chance to post back a “+1” some one else posted back that you’ve been able to do that for years in all the versions of Visual Studio he could remember. All you have to do is, with the version of the file you want to duplicate open (you are selected to that tab), press the menu choice “Window/New Window” and presto!  you have two copies.     Now, after pressing Window/New Window you … Continue Reading

Microsoft’s ASP.NET MVC Lite, Building a TextReformatter With JsonResult

image.png

  Introduction   People often ask me if I use MVC or WebForms for my Microsoft ASP.NET projects.  I always tell them MVC, but I don’t use it in the classic way that most others do.  That is to say, I emit no html from my views, and for that matter really don’t even use views (with the exception of one view which is essentially my entire app.   People often refer to this as a SPA or Single-Page-Application. What this basically means is that my entire view is built with JavaScript (in my case Sencha’s ExtJS) and the only interaction with the server is to simply bring down Json results. In this post, I’m going to build a simple app following this principle. It’s purpose will be to take a big pile of text, chop … Continue Reading

Building a Simple Window Service Application in Visual Studio 2010 That Runs, Sleeps and Stops

image.png

Introduction The goal is to create a simple Service in Windows 7 (or other similar OS’s) with Visual Studio 2010 that simply starts, sleeps for 15 seconds, then stops.  I realize this is not that useful, but basically, it covers the case of building a service that actually does something and when finished stops.  In my personal case, my thread has a while(true) loop which keeps looking for new work and only completes when certain conditions are met (like a fatal error that is non recoverable). Microsoft has given us a pretty good set of docs and walk through.  You can find them all here:  http://msdn.microsoft.com/en-us/library/y817hyb6.aspx   The Steps Create a new Visual Studio Project of type “Windows … Continue Reading

Test First Development Walk Through with Visual Studio 2011 Preview

image.png

Introduction Many of us know we should be using test first development, however it is hard to break old habits.  I have to admit, I started to solve this particular problem I’m going to use an an example first without test first, then realized what a pickle I was going to be in proving to myself it worked.  So, I thought, why not blog my experience as I do it.  Using Visual Studio unit testing makes this pretty easy.   The Problem I’m currently building a multithreaded email processor and part of that process is I have to figure out, for any given use whether they are supposed to have there email server checked.  So, the way I look at it, I need a method that takes in the following parameter. Now – … Continue Reading

Follow

Get every new post delivered to your Inbox

Join other followers: