Rewriting Windows forms applications for the Web Part 1