@Bharat Patel, Welcome to Microsoft Q&A,
Please consider the following dependencies before you migrate a Windows Forms application:
- Project files for .NET use a different format than .NET Framework.
- Your project might use an API that isn't available in .NET.
- Third-party controls and libraries might not have been ported to .NET and remain only available to .NET Framework.
- Your project uses a technology that is no longer available in .NET.
Then, I recommend that you used the upgrade assistant to update your winform from .net 4.8 to .net 7. How to migrate a Windows Forms desktop app to .NET 5
You could refer to the above link to upgrade your winform app.
Hope my solution could help you.
Best Regards,
Jack
If the answer is helpful, please click "Accept Answer" and upvote it. Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.