using .NET framework Component through the Dialog Editor

Posted on 2005-04-20
Last Modified: 2013-11-25
I am able to use all the COM components(Drag and Drop) using the Dialog editor on my MFC project using the Visual Studio .NET

But when i customize my toolbox to add .NET Framwork Components, i see the controls  added but they are "greyed out" on the Dialog editor. Hence I am unable to use any .NET Framework Component.

Please help me regarding this issue. How do i get the .net components to work?


Question by:hari4130
    LVL 48

    Accepted Solution

    You can do this only in managed C++ application. .NET components require .NET framework and managed host program. Create managed C++ Windows Forms application and use these components.

    Author Comment

    The MFC project I have is already in the "Unmanaged form". I migrated this code from VC++6.0 to VC++ .NET.

    In order to make my whole project(60 cpp files) to managed form, I would have to rewrite a large portion of the code right ??\

    Is there any other way for me to use the .NET Components ? Or Do i have to stick to the COM Components only.

    Please Advise..........


    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
    What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now