dotnet / winforms

Windows Forms is a .NET UI framework for building Windows desktop applications.
MIT License
4.28k stars 954 forks source link

Can .Net8.0-windows Win Form support calling from MFC #11517

Open daliuzhen1 opened 2 weeks ago

daliuzhen1 commented 2 weeks ago

.NET version

.net8.0-windows

Did it work in .NET Framework?

Yes

Did it work in any of the earlier releases of .NET Core or .NET 5+?

No response

Issue description

Hi Team

Currently we have a winform control on top of the .Net framework, and we use it in our MFC application. Is it possible to upgrade the .Net Framwork to .Net8-windows. I found that CWinFormsControl class is out of date and can not used for in .Net8-windows. I know we can use com to implement that. But we dont want to use that. Is there any other solution?

Steps to reproduce

After upgrade to .Net8 control, got crash in MFC application

merriemcgaw commented 2 weeks ago

WE will talk to the MFC team. There is a library that is used for hosting WinForms and we may need a new build of that against Core. We will talk with the team to see what our next steps might be.

daliuzhen1 commented 2 weeks ago

WE will talk to the MFC team. There is a library that is used for hosting WinForms and we may need a new build of that against Core. We will talk with the team to see what our next steps might be.

@merriemcgaw Thanks for your quick reply.

Is that mean it already has a library in MFC to replace for hosting WinForms? What's the library and please let me know if the library available? We plan to upgrade .Netframework to .Net8

anandjain-ni commented 2 weeks ago

This is also preventing our application from migrating from .NET Framework to .NET 8.

sandeep-pc-NI commented 2 weeks ago

We are facing the same issue while porting a C++ CLI project from .NET framework to .NET Core. Can you please let us know when this would be resolved.

trj87 commented 2 weeks ago

We have been hitting this issue as well and it's preventing us migrating our product from Framework. Please provide a quick resolution.

daliuzhen1 commented 1 week ago

Hi Team

Any comment on this?