Convert VS2010 to VS2008 C# Project

If you want to convert a C# project in Visual Studio 2010 to one in Visual Studio 2008, then you simply need to open and edit two files in notepad.

First open the solution file and change the following two lines

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010

to

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008

and then open each project file and change the entry near the top of the file from

ToolsVersion="4.0" to ToolsVersion="3.5"

Convert VS2008 to VS2010 C# Project

If you want to convert a C# project in Visual Studio 2008 to one in Visual Studio 2010 without going through the conversion process by opening it in Visual Studio 2010, then you simply need to open and edit two files in notepad.

First open the solution file and change the following two lines

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual C# Express 2008

to

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010

and then open each project file and change the entry near the top of the file from

ToolsVersion="3.5" to ToolsVersion="4.0"

Limiting doubles in C#

I have had a reason to limit the number of decimal places of a double to store in a database. After a quick scout through the web I came across the answer using the Math class. Rather than explain, here is a method showing the use of the Math.Round method.

public double PixelPositionToPercentOfHeight(int top)
{
double percentage = (double)top / (double)(this.ClientRectangle.Height);

// Limit to 6 decimal places
return Math.Round(percentage, 6);
}

Simply Dreaming

Over the last year I have been working in a collaboration to develop a new free html editor. Simply Dreaming can be found at http://sourceforge.net/projects/simplydreaming/.

This is currently being written in C#, although we may port this to QT so that it runs on both Windows and Linux.

Opening Publisher Files

Recently a colleague asked me if I could open a publisher file for him, as we do not have publisher at work. So I searched my list of portable apps and came up with nothing that would open it. Time to Google I thought.

After about ten minutes I came upon an on-line application that saved the day. www.pdfonline.com allows you to upload a file, which they convert to a pdf and send to you (with some advertising) in an email. Admittedly it took about an hour for the email to come through, but he could see the contents of the file finally.

Paint .NET Portable – Updated (v3.22)

My Previous posts for paint.net portable have out of date links. The new link is at http://yerdenizden.blogspot.com/2008/01/portable-paintnet-322.html.

This site has a lot of other portable applications, some legal and some not so legal. But a great repositry all the same.

Portable CAD

I was looking for a simple cad application the other day when I stumbled upon LiteCad, which just happens to run off a pen drive. Download it at http://www.litecad.com/.

MFC Apps with Feature Pack – Update

A while ago, I posted a couple of links to the upcoming MFC Feature Pack for Visual Studio 2008. Microsoft have now released the final version of the feature pack.

The VC++ 2008 MFC libraries have been extended to support creation of applications that have:

  • Office Ribbon style interface
  • Office 2007, Office 2003 and Office XP look and feel
  • Modern Visual Studio-style docking toolbars and panes
  • Fully customizable toolbars and menus
  • A rich set of advanced GUI controls
  • Advanced MDI tabs and groups

and much more.

Here is the link to download it

http://www.microsoft.com/downloads/details.aspx?FamilyId=D466226B-8DAB-445F-A7B4-448B326C48E7&displaylang=en

See http://publicjoe.wordpress.com/2008/01/30/mfc-apps-with-feature-pack/ for some screen shots.

Zen and the art of WPF – LOL

It’s not often that I find a post that is both informative and funny, but one of John Smith’s recent posts just does that. Find it at his blog: http://joshsmithonwpf.wordpress.com/2008/02/23/zen-and-the-art-of-wpf/.

It has an interesting side note on the application called Snoop, which looks useful in and of itself.

Paint .NET Portable – Updated

My Previous post at paint.net portable has an out of date link. The new link is here.

Follow

Get every new post delivered to your Inbox.