<p>Looking at the C# project templates in VS2008 and the offerings are WPF User Control Library, WPF Custom Control Library and Windows Forms Control Library. Which of these would you use if you wanted to move a legacy active control written in c++ into the world of C# and .NET?</p>

[{'answer_id': 55457, 'author': 'GEOCHET', 'author_id': 5640, 'author_profile': 'https://Stackoverflow.com/users/5640', 'pm_score': 0, 'selected': False, 'text': '<p>There is no project template that will do this for you. You might as well read up and start with a usercontrol.</p>\n'}, {'answer_id': 55461, 'author': 'tgeros', 'author_id': 4458, 'author_profile': 'https://Stackoverflow.com/users/4458', 'pm_score': 0, 'selected': False, 'text': '<p>You would have to consider the target application that will host the control. If it is a line of business application I\'ve <a href="http://wpf.netfx3.com/blogs/presentation_bloggers/archive/2007/08/30/wpf-for-biz-apps-or-not.aspx" rel="nofollow noreferrer">heard</a> that WPF doesn\'t offer great advantages over Forms. According to <a href="http://hestia.typepad.com/flatlander/2007/08/should-i-use-wp.html" rel="nofollow noreferrer">this</a> blog entry however, the author believes that the killer WPF is a LOB application that leverages the graphical power afforded by WPF for data visualisation.</p>\n\n<p>In the end I guess it is a cost/benefit analysis. Do you go down the WPF route and pay the cost of the learning curve for the future benefit of graphical data visualisation or do you stick with the tried and true method and risk developing an outdated application.</p>\n'}, {'answer_id': 55477, 'author': 'morechilli', 'author_id': 5427, 'author_profile': 'https://Stackoverflow.com/users/5427', 'pm_score': 3, 'selected': True, 'text': "<p>It sounds like you are trying to do several different things all at once:</p>\n\n<ol>\n<li>Migrate your code to building in a newer version of visual studio.</li>\n<li>Migrate your use of technology to a newer technology (ActiveX to .net)</li>\n<li>Migrate your language (c++ to c#).</li>\n</ol>\n\n<p>If you have a small codebase you are probably as well to start from scratch and port functionality into the new codebase as required.</p>\n\n<p>For a larger codebase you need to realize that this is an expensive task both in effort and defect rate.</p>\n\n<p>An order might be:</p>\n\n<ol>\n<li>Import your code into the newer version of visual studio. Get it compiling. Review the project settings for each project.</li>\n<li>Refactor your code to isolate the mfc and activex code as much as possible. Follow good refactoring practices especially if don't have many unit tests before you start.</li>\n<li>Consider replacing your ActiveX layer with .net.</li>\n<li>Consider which GUI toolkit is best for replacing MFC.</li>\n<li>Language - consider moving first to managed c++.</li>\n<li>Consider moving from managed c++ to c#.</li>\n</ol>\n\n<p>Most importantly be able to justify doing all of the above!</p>\n"}]
['https://Stackoverflow.com/questions/55451', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4341/']